Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

asynchronous file reading

var fs = require("fs");
  
// Asynchronous read
fs.readFile('input.txt', function (err, data) {
   if (err) {
      return console.error(err);
   }
   console.log("Asynchronous read: " + data.toString());
});
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #asynchronous #file #reading
ADD COMMENT
Topic
Name
7+3 =