cheers# $fh is your file handler seek($fh, $old_position, 0); my $buffer = read($fh, 200000); # read ~200KB from the file # save current position $old_position = tell($fh); # do whatever you want with the buffer # here..
| "There is no system but GNU, and Linux is one of its kernels." -- Confession of Faith |
In reply to Re: Parsing a 4M+ Contiguous text file
by vladb
in thread Parsing a 4M+ Contiguous text file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |