Hi all,
    Now I have a text file about 1MB.  Sometimes I need to remove the last
line.
    The current method I use is reading all content, finding the last
sentence, remove it and write the new content to the file.
    So, it need to read a 1MB file and write a 1MB file. It's ineffictient,
I think. Are there any other methods?
_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to