Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (11)
As of 2018-07-16 11:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (333 votes). Check out past polls.

    Notices?