The Node.js filesystem module ‘fs’ has a readFileSync function that returns the entire contents of a file directly into a program variable. Whilst this call can be convenient, explain why it is not recommended inside a Web App server. code example
Example: node load string from file
var fs = require('fs');
fs.readFile('my-file.txt', 'utf8', function(err, data) {
if (err) throw err;
console.log(data);
});