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