text file edit object?

Simon Burton simonb at webone.com.au
Mon Feb 23 17:57:03 EST 2004


# 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