Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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]
[marto]: good morning all

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2018-03-21 08:55 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (265 votes). Check out past polls.