Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

synchronous file reading

var fs = require("fs");
  
// Synchronous read
var data = fs.readFileSync('input.txt');
console.log("Synchronous read: " + data.toString());
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #synchronous #file #reading
ADD COMMENT
Topic
Name
5+1 =