js file handling code example
Example: file handling using javascript
var fs = require('fs');
fs.writeFile('new_file.txt', 'Hello content!', function (err) {
if (err) throw err;
console.log('Saved!');
});
var fs = require('fs');
fs.writeFile('new_file.txt', 'Hello content!', function (err) {
if (err) throw err;
console.log('Saved!');
});