var content; fs.readFile(\'./Index.html\', function read(err, data) { if (err) { throw err; } content = data; }); console.log(content); >
var content; fs.readFile(\'./Index.html\', function read(err, data) { if (err) { throw err; } content = data; }); console.log(content);
var data = fs.readFileSync('tmp/reltioconfig.json','utf8');
use this for calling a file synchronously, without encoding its showing output as a buffer.