-
-
Save catalinpit/571ba06c06214b5c8744036c6500af92 to your computer and use it in GitHub Desktop.
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'); | |
const path = require('path'); | |
fs.writeFile('content.txt', 'This is my first file!', (err) => { | |
if (err) { | |
throw err; | |
}; | |
process.stdout.write('File created successfully!'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment