Skip to content

Instantly share code, notes, and snippets.

@frewsxcv
Created April 5, 2012 04:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frewsxcv/2308061 to your computer and use it in GitHub Desktop.
Save frewsxcv/2308061 to your computer and use it in GitHub Desktop.
var fs = require('fs');
fs.readFile('README.md', (err, data) ⇨ {
if (err) {
console.error("Could not open file: %s", err);
process.exit(1);
}
console.log(data);
});
@frewsxcv
Copy link
Author

frewsxcv commented Apr 5, 2012

In addition to fs.readFile('README.md', (err, data) => {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment