Created
July 1, 2020 11:03
-
-
Save velotiotech/6b6ccf0c3682b11c2e1ea8b319bd4cea to your computer and use it in GitHub Desktop.
NodeJS file read
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
fs.readFile(filePath, (err, result) => { | |
if (err) { console.log(err); } | |
console.log(data); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment