Created
August 24, 2017 00:50
-
-
Save liammclennan/f2990dd67eba1606bf9b1d0c0b07771b to your computer and use it in GitHub Desktop.
Node.js console application skeleton
This file contains 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
if (process.argv.length < 3) { | |
console.log('Usage: node ' + process.argv[1] + ' FILENAME'); | |
process.exit(1); | |
} | |
var fs = require('fs') | |
, filename = process.argv[2]; | |
let input = fs.readFileSync(filename, 'utf8'); | |
// write your program here | |
// output your solution | |
console.log(input); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment