Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: Read Some lines in Tera byte file

by jethro (Monsignor)
on Oct 13, 2010 at 11:17 UTC ( #865059=note: print w/replies, xml ) Need Help??

in reply to Read Some lines in Tera byte file

If the file doesn't get changed often and you have the ability to seek in it, then I would create an index of where every hundreth or thousand line starts, i.e where line 1000, line 2000, line 3000... starts. That way my index file would be relatively small and I would have to read maximal 99 or 999 unnecessary lines before reading the payload.

But as I said, this depends on the data being unchanging or only getting updated by appending

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2016-10-26 05:55 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (336 votes). Check out past polls.