Created
September 26, 2022 17:44
-
-
Save nairihar/a8a28fd581b1a57352a2afe88d6d213b to your computer and use it in GitHub Desktop.
Three ways to work with File System in Node.js | Callbacks
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.readFile('LICENSE.md', (err, data) => { | |
// ... | |
}); | |
fs.writeFile('README.md', 'This is awesome!' (err) => { | |
// ... | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment