Answers for "create empty file using node javascript"

0

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!');
});
Posted by: Guest on July-18-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language