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
|
|---|
| 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 |