This will not work for you because have some lines that can't be read into memory before determining how long they are. The following steps should outline the process for you.while ( <FILE> ) { next if length() > 1024 * 1024; # ... }
Cheers - L~R
In reply to Re: Reading files, skipping very long lines...
by Limbic~Region
in thread Reading files, skipping very long lines...
by Excalibor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |