Answers for "data not write in file node js"

1

data not write in file node js

const fs = require('fs');

fs.readFile('file.txt', 'utf-8', (err, data) => {
    if(err) {
        throw err;
    }
    console.log(data);
});
Posted by: Guest on October-22-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language