Skip to content

Instantly share code, notes, and snippets.

@sejoker
Created November 22, 2014 12:51
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 sejoker/bf350d2a2ef64aa8a0e8 to your computer and use it in GitHub Desktop.
Save sejoker/bf350d2a2ef64aa8a0e8 to your computer and use it in GitHub Desktop.
fs
var fs = require('fs')

function(cb){
		fs.readFile(process.argv[2], function(err, data){
			if (err){
				cb(err);
			} else {
				cb(null, data.toString())
			}
		})
	}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment