Created
May 26, 2015 23:01
-
-
Save sergiodxa/079fde628f8e9851e2df to your computer and use it in GitHub Desktop.
Callbacks en Node.js
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
import fs from 'fs'; | |
fs.readFile('archivo.txt', (error, data) => { | |
if (error) throw error; | |
console.log(data.toString()); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment