[Tutor] Text processing basic Q

jamesgross@sunhome.biz jamesgross@sunhome.biz
Mon Apr 14 11:50:02 2003


I have a log file(from irc chat #plone) that I would
like to print. The log file has lines that start with * that I would like
to delete from
the file.

Yesterday <Erwin> from #python helped answer how to select a line that
starts with a * by line.startswith('*'), so now  what would the code be
for a script to

1. load the file
2. start at the beginning of the file
3. if line start with * then delete
4. move to the next line in the file
5. save the file

Thanks in advance, James