but still reads whole file.
thats what get($fullfile)does , read the whole file at once.
and i think @hippo meant
Put it right after $line_count++;. You may Read the whole file via get, but then only PROCESS the beginninglast if $line_count > 29;
In reply to Re^3: Split file, first 30 lines only
by huck
in thread Split file, first 30 lines only
by wrkrbeee
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |