Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: seek and process from there on

by leocharre (Priest)
on May 30, 2006 at 16:02 UTC ( [id://552535]=note: print w/replies, xml ) Need Help??


in reply to seek and process from there on

Is this a mammoth file? How does this file grow? Is it appended or perhaps.. prepended to? Is this a log?

If this was a file that were going to grow, and some code creates or manages this file; .. maybe I would store where that place is, the line num, for later use .. elsewhere. That is.. maybe you could keep metadata<.i> about where the place you want is. like..

Maybe your file is in a named textfile.log, and it's the only file in a dir.. You could touch the line number in that dir.. so you'd create an empty file named (for example) ./3456, then you can do an ls -I textfile.log, what you get back would be the line num of where to open textfile.log
Depending on what you're doing, this could prove slower- and then maybe faster.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (2)
As of 2024-04-19 19:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found