I am trying to read a large file one line at a time. I found a question on Quora that dealt with the subject but I\'m missing some connections to make the whole thing fit to
In most cases this should be enough:
const fs = require("fs") fs.readFile('./file', 'utf-8', (err, file) => { const lines = file.split('\n') for (let line of lines) console.log(line) });