in reply to how can i work with huge files?
Anyway, you avoid loading the entire file into memory by reading it one bit at the time. For instance, by reading it line by line (one can set $/ to define ones line ending), or by reading in a certain number of bytes (set $/ to a reference to an integer, or use (sys)read. You may want to (sys)seek to skip parts of the file - but that only works if you know where to go to.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how can i work with huge files?
by morfeas (Novice) on Feb 08, 2005 at 14:47 UTC | |
by Anonymous Monk on Feb 08, 2005 at 15:18 UTC | |
|