Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

node readFileSync json

const fs = require('fs');

let rawdata = fs.readFileSync('student.json');
let student = JSON.parse(rawdata);
console.log(student);
Source by stackabuse.com #
 
PREVIOUS NEXT
Tagged: #node #readFileSync #json
ADD COMMENT
Topic
Name
3+2 =