Simple file writing techiques ...

Simon Forman rogue_pedro at yahoo.com
Wed Jul 19 12:46:05 EDT 2006


cdecarlo wrote:
> Hello,
>
> I've often found that I am writing little scripts at the interpretor to
> read a text file, perform some conversion, and then write the converted
> data back out to a file. I normally accomplish the above task by

<snip>

>
> Any suggestions,
> 
> Colin

You should check out the fileinput module.

HTH,
~Simon




More information about the Python-list mailing list