in reply to Reading files, skipping very long lines...
Is there a way for me to skip it without having to seek for the end on line?
No, you can't skip it unless you already know the position of the next newline (in which case you could seek past your long line.) You can read it in chunks and just toss the chunks away until you find one with a newline in it. Done right, that should take care of your memory issue.
-sauoq "My two cents aren't worth a dime.";
|
|---|