how to access data of readfile code example
Example 1: read file node
// load fs
const fs = require("fs");
// read the file
const content = fs.readFileSync("./my_file.txt");
// print it
console.log(content.toString());
Example 2: fs readfile not working
const content = fs.readFileSync('./Index.html', 'utf8');
console.log(content);