Skip to content

Instantly share code, notes, and snippets.

@made-by-chris
Created July 28, 2014 11:59
Show Gist options
  • Save made-by-chris/64cbc290ae7fabc4a9ab to your computer and use it in GitHub Desktop.
Save made-by-chris/64cbc290ae7fabc4a9ab to your computer and use it in GitHub Desktop.
var fs = require(fs);
var blob = fs.readFile('dummy.txt');
console.log(blob);
var ln = blob.toString().split('\n');
console.log((ln.length)-1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment