readfile return node code example Example: fs readfile not working const content = fs.readFileSync('./Index.html', 'utf8'); console.log(content);