1var fs = require('fs');
2
3fs.readFile('my-file.txt', 'utf8', function(err, data) {
4 if (err) throw err;
5 console.log(data);
6});
1var fs = require('fs');
2
3fs.readFile('my-file.txt', 'utf8', function(err, data) {
4 if (err) throw err;
5 console.log(data);
6});
7