Is reverse reading possible?

Georgy no.mail at available.net
Sun Mar 14 13:17:53 EST 2004


"Anthony Liu" <antonyliu2002 at yahoo.com> wrote in message news:mailman.29.1079282915.745.python-list at python.org...
| In terms of file input, can we read from the end of
| the file till the beginning of a file?


reversed_text = file( filename, "r" ).read()[::-1]





More information about the Python-list mailing list