file ops on the fly ?

Alex Martelli aleax at aleax.it
Sat Jul 20 08:00:10 EDT 2002


Shagshag wrote:
        ...
> i was also thinking of this mecanism, but my biggest trouble is how to
> write the new file end ? and/or delete the last lines :

f.seek to the place you want to be the last one in the file,
then call f.trucate().

That's the least of your worries...


Alex




More information about the Python-list mailing list