Created
April 11, 2018 11:26
-
-
Save vdespa/f71de898415af5e3a2aa2a7bdfd02cbe to your computer and use it in GitHub Desktop.
Write file to disk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
fs.writeFile(`foo.txt`, 'bar', function (error) { | |
if (error) { | |
console.error(error); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment