On 10/19/06, Chad Crabtree <
[EMAIL PROTECTED]> wrote:
file('filename.txt').readlines()[-1]
Some will say that this is no good because the file is still open. However I've been told that when the object is cleaned the file is closed so it should be fine.
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor
_______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
