Skip to content

Instantly share code, notes, and snippets.

@clauswitt
Created November 24, 2015 07:50
Show Gist options
  • Save clauswitt/9839c49753df1ac61d20 to your computer and use it in GitHub Desktop.
Save clauswitt/9839c49753df1ac61d20 to your computer and use it in GitHub Desktop.
fs = require('fs')
fs.readFile('file.js', 'utf8', function (err,data) {
if (err) {
return console.log(err);
}
console.log(data);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment