var fs = require('fs');
fs.open('mynewfile2.txt', 'w', function (err,
file) {
if (err) throw err;
console.log('Saved!');
});
fs.writeFile('<fileName>',<contenet>, callbackFunction)
fs.appendFile('<fileName>',<contenet>, callbackFunction)
fs.open('<fileName>',<file_open_mode>, callbackFunction)