Created
December 5, 2015 19:50
-
-
Save tanyagupta/071e330f29431d014691 to your computer and use it in GitHub Desktop.
MY FIRST I/O! (Exercise 3 of 13)
This file contains hidden or 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
var fs = require('fs'); | |
var file = fs.readFileSync(process.argv[2]); | |
var arr=file.toString().split('\n'); | |
console.log(arr.length - 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment