Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to use json file in nodejs

// Read Synchrously
var fs = require("fs");
console.log("
 *START* 
");
var content = fs.readFileSync("content.txt");
console.log("Output Content : 
"+ content);
console.log("
 *EXIT* 
");
Source by www.codementor.io #
 
PREVIOUS NEXT
Tagged: #json #file #nodejs
ADD COMMENT
Topic
Name
3+8 =