how to delete or change...

Shagshag13 shagshag13 at yahoo.fr
Mon Jul 22 09:25:45 EDT 2002


hello,

i'm looking for the easiest way to delete or change last n character(s) of a text file.

(i must avoid using a temp file - i had many huge files not enough place left, and can buy new hdd ;o)

thanks,

s13.

(ps : i was thinking of some kind of open in rwb, seek at end, write new char once at a time, but i get a i/o error)





More information about the Python-list mailing list