Re: [File Input Module]Replacing string in a file

2010-01-28 Thread Steven D'Aprano
On Thu, 28 Jan 2010 21:36:27 -0800, vanam wrote: > Hi all, > > For replacing string in the file, i have used the module File input for > replacing the string in the file. If you're processing a single file, using fileinput is overkill, and slow as well. Here is a quick-and-dirty way of processi

[File Input Module]Replacing string in a file

2010-01-28 Thread vanam
Hi all, For replacing string in the file, i have used the module File input for replacing the string in the file. For understanding and execution purpose, i have just included Python as a string in the file and want it to be replaced to PYTHON. Below are my queries and code: (Correct me if my un