[Tutor] Conflicted

alan.gauld@bt.com alan.gauld@bt.com
Sun, 7 Apr 2002 23:23:50 +0100


> > > I am however not quite clear as to why the whole line is being
> > > replace rather than just the string requested.    

Neither am I.
Are you sure the code you posted is exactly what you are 
running?
You don't perchance have an else clause for the file output, 
like this:

if s.find('Spam'):
    ....do stuff...
else:
   file.write(s)

If so then the line containing spam won't get written....

Its all I can think of!

Alan G