Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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);
});
Source by attacomsian.com #
 
PREVIOUS NEXT
Tagged: #data #write #file #node #js
ADD COMMENT
Topic
Name
5+4 =