Node.js fs readFile()
readFile()
var fs = require("fs"); fs.readFile("test.txt", function(err, data) { console.log(data);//from w w w .ja v a2 s .c o m }); console.log("Do other tasks");