Skip to content

Instantly share code, notes, and snippets.

@clauswitt
Created August 23, 2016 18:23
Show Gist options
  • Save clauswitt/695aa03e72ec53635f749b9a9d2d0dba to your computer and use it in GitHub Desktop.
Save clauswitt/695aa03e72ec53635f749b9a9d2d0dba to your computer and use it in GitHub Desktop.
var fs = require('fs');
fs.writeFile("file.txt", "This is the new file content.", function(err) {
if(err) {
return console.log(err);
}
console.log("The file was saved!");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment