469,579 Members | 1,112 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,579 developers. It's quick & easy.

Is reverse reading possible?

In terms of file input, can we read from the end of
the file till the beginning of a file?

__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com

Jul 18 '05 #1
1 1698

"Anthony Liu" <an***********@yahoo.com> wrote in message news:ma***********************************@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]
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

14 posts views Thread by Erik Andersson | last post: by
35 posts views Thread by Raymond Hettinger | last post: by
59 posts views Thread by Raymond Hettinger | last post: by
8 posts views Thread by Jim Langston | last post: by
14 posts views Thread by ford_desperado | last post: by
20 posts views Thread by sahukar praveen | last post: by
4 posts views Thread by Jeff Rodriguez | last post: by
6 posts views Thread by Rajorshi Biswas | last post: by
3 posts views Thread by Alex | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.