Created
September 30, 2017 08:09
-
-
Save csrgxtu/6ce940ebd8a5655bf5a7feadce6733ad to your computer and use it in GitHub Desktop.
node cb access parent's var
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 = require('fs') | |
fs.readFile('/etc/hosts', 'utf8', function (err,data) { | |
if (err) { | |
return console.log(err); | |
} | |
console.log(data); | |
}); |
Author
csrgxtu
commented
Sep 30, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment