Node.js fs readFile()

Description

Node.js fs 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");



PreviousNext

Related