text file edit object?

Simon Burton simonb at NOTTHISBIT.webone.com.au
Mon Feb 23 17:59:34 EST 2004


Please ignore, my news reader went crazy.

Simon.


On Tue, 24 Feb 2004 09:57:03 +1100, Simon Burton wrote:

> 
> # Does anything like this exist ?
> 
> myfile = TextFile("myfile.c")
> if myfile and myfile[0].startswith( "/*" ):
>   myfile[:12] = []
>   myfile.save()
> 
> 
> # Simon Burton.




More information about the Python-list mailing list