showing results for - "create empty file using node javascript"
Sara Sofía
06 Nov 2018
1
2  var fs = require('fs');
3
4fs.open('mynewfile2.txt', 'w', function (err, 
5  file) {
6  if (err) throw err;
7  console.log('Saved!');
8});