0
const lineReader = require('line-reader');
let data = "";
lineReader.eachLine('index.txt',(line,last)=>{
data += line;
})
console.log(data)

I tried changing from let to var

  • Does this code not work as expected? If so, what is it actually doing? Is there an error in your console? – mykaf Nov 08 '22 at 18:31

0 Answers0