3 ms·
In the documentation, there is a specific example for reading a file line by line, and it is very concise[1]. I'm too lazy to test how fast it is though. [1]:
by egeozcan 9y ago
In the documentation, there is a specific example for reading a file line by line, and it is very concise[1]. I'm too lazy to test how fast it is though.
[1]: https://nodejs.org/api/readline.html#readline_example_read_file_stream_line_by_line https://nodejs.org/api/readline.html#readline_example_read_f...