Olli Virta wrote:

> Hi!
> 
> I got a textfile made out of database records. Is there an easy way to
> modify rows in that file in case you have to take away some items here
> and there from each rows.

for line in inf.readlines():
    if matches_criteria(line):
       line = modify_line(line)
    outf.write(line)


Diez
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to