Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

create file node javascript

var fs = require('fs');

fs.open('mynewfile2.txt', 'w', function (err, 
  file) {
  if (err) throw err;
  console.log('Saved!');
});
 
PREVIOUS NEXT
Tagged: #create #file #node #javascript
ADD COMMENT
Topic
Name
2+9 =