[Tutor] Replacing the string in a file
Stefan Behnel
stefan_ml at behnel.de
Fri Jan 22 09:46:19 CET 2010
Stefan Lesicnik, 22.01.2010 09:11:
> I have used the fileinput module for this quiet alot. It has an inplace
> option which does what you want and a backup option that keeps a backup.
>
> http://docs.python.org/library/fileinput.html
> http://www.doughellmann.com/PyMOTW/fileinput/index.html
Ah, right, I almost forgot about this one:
http://xkcd.com/413/
Stefan
More information about the Tutor
mailing list