You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible that there is a bug in the new version? I have problems in reading bigger files which I have processed successfully in the past. They all stop reading after 900 - 2100 lines by returning reader.hasNextLine() === false. The files are > 100.000 lines long. Each file stops at a different line, but per file the stopping line is the same.
Here is my code:
lineReader.open('bigfile.txt', function(reader) {
var process_line, i = 0;
process_line = function(line) {
console.log(i, line);
i += 1;
if( reader.hasNextLine() ) {
reader.nextLine( process_line );
}
};
reader.nextLine( process_line );
});
Is it possible that there is a bug in the new version? I have problems in reading bigger files which I have processed successfully in the past. They all stop reading after 900 - 2100 lines by returning reader.hasNextLine() === false. The files are > 100.000 lines long. Each file stops at a different line, but per file the stopping line is the same.
Here is my code:
If I remove the if like so
the whole file is process, but the function crashes (of course) when the end of file is reached.
Any ideas?
Thanks and best regards,
jochenonline
The text was updated successfully, but these errors were encountered: