Task: Read a File One Line at a Time in Node.js
Task: Read a File One Line at a Time in Node.js: a task in Terminal-Lego-15k (Harbor dataset). Create a Node.js script that reads a large file one line at a time without loading the entire file into memory. The solution must use Node.js built-in modules (such as readline and fs ) to process a file…
The task
Create a Node.js script that reads a large file one line at a time without loading the entire file into memory. The solution must use Node.js built-in modules (such as `readline` and `fs`) to process a file line by line efficiently.
Part of PrimeIntellect/Terminal-Lego-15k.