Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Is there a way to read a file backwards?

by mikfire (Deacon)
on Jul 31, 2000 at 07:38 UTC ( #25202=note: print w/replies, xml ) Need Help??


in reply to Is there a way to read a file backwards?

In short, no. Files really aren't meant to be read that way. There is, to the best of my knowledge, no way of doing this. The only way I have seen is basically "suck it into an array and pop the last N lines off".

mikfire

  • Comment on Re: Is there a way to read a file backwards?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://25202]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2018-10-21 11:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When I need money for a bigger acquisition, I usually ...














    Results (119 votes). Check out past polls.

    Notices?