Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript readfile

let fs = require('fs');
let filename = '/path/to/File.json';
fs.readFile(filename, 'utf8', function (err, data) {
	
  	// if an error occurs
  	if(err) throw err;
  
  	console.log(data);
}
 
PREVIOUS NEXT
Tagged: #javascript #readfile
ADD COMMENT
Topic
Name
2+4 =