Your go-to place for all things programming!!
4) Program to read a file from node.js
const fs = require ('fs');fs.readFile('./test.txt','utf8', (err, data) => { if (err) {console.error(err); } console.log ("Data is: "+data);});
No comments:
Post a Comment