471,888 Members | 2,470 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,888 software developers and data experts.

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 1744

"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 zermasroor | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.