Replacing line in a text file

CSUIDL PROGRAMMEr syedamjad_a at yahoo.com
Fri Sep 22 13:25:35 EDT 2006


Folks
I am trying to read a file
This file has a line containing string  'disable = yes'

I want to change this line to 'disable = no'

The concern here is that , i plan to take into account the white spaces
also.

I tried copying all file int list and then tried to manipulate that
list

But the search is not working

Any answer

thanks




More information about the Python-list mailing list