Answers for "go over each line in text nodejs"

0

go over each line in text nodejs

require('fs'). readFileSync('file.txt', 'utf-8'). split(/\r?\n/). forEach(function(line){
  console. log(line);
})
Posted by: Guest on August-08-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language