create empty file using node javascript
var fs = require('fs');
fs.open('mynewfile2.txt', 'w', function (err,
file) {
if (err) throw err;
console.log('Saved!');
});
Are there any code examples left?
New code examples in category Javascript