fileread.js 104 Bytes Raw Blame History Permalink 1 2 3 4 var fs = require('fs'); fs.readFile('sample.txt', 'utf8', function(err, data){ console.log(data); });