how to read text files js code example
Example: read text in txt file js
const fs = require('fs')
fs.readFile("File.txt", (err, data) => {
if (err) throw err;
console.log(data);
})
const fs = require('fs')
fs.readFile("File.txt", (err, data) => {
if (err) throw err;
console.log(data);
})