Read from the last line of a file?

Anthony Liu antonyliu2002 at yahoo.com
Tue Mar 22 22:22:56 EST 2005


Normally when we do

line = in_file_obj.readline()

we read from the first line of a file.

I am wondering if it is possible to start reading from
the last line of file, and then the last but one up to
the first line.



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the Python-list mailing list