nodefs

Home   »   nodefs

const fs = require('fs');

‚Äč

fs.readFile('./readme.txt',(err, data) =>{

if(err){

    throw err;

}

console.log(data);

console.log(data.toString());

})

Leave a Reply

Your email address will not be published. Required fields are marked *