in reply to Reading a VERY LARGE file with SINGLE line as content!

That depends on what you would like to do with the single line. Is it text? Is it binary information? If you can process that line piecewise, than you could use sysread for example. Binary information is accessible by unpack after reading the data piecewise. (Updated after JavaFans comment.)
A sliding window that is big enough to hold more characters or bytes than the biggest chunk of information your program needs to process might come handy too.

HTH

  • Comment on Re: Reading a VERY LARGE file with SINGLE line as content!

Replies are listed 'Best First'.
Re^2: Reading a VERY LARGE file with SINGLE line as content!
by JavaFan (Canon) on Jul 17, 2009 at 22:28 UTC
    I'm not sure how unpack is going to help you. To be able to use unpack, you'd first have to read in the data. And that's where the OP has the problem. And if the line read in is already to large, think how the memory usage will be if each couple of bytes is turned into a different SV.