editing text file

ataraxia2500 messageboardfan1 at yahoo.com
Wed Jun 25 12:05:53 EDT 2003


 is there a function that can search for specific words in a text file (kind
of like grep) and change them?
say in my text file there's a line such as:
[myvalue]=X

and my function would search the line [myvalue] and replace X by Y.

any suggestions?

thanx in advance 




More information about the Python-list mailing list