Brine
0
Q:

fs readfile not working

const content = fs.readFileSync('./Index.html', 'utf8');
console.log(content);
0
fs.readFile('filename', function read(err, data) {
    if (err) {
        throw err;
    }
    var content = data;
  
    console.log(content);  
   
});
5

New to Communities?

Join the community