You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/usr/bin/env node
|
|
fs = require('fs');
|
|
|
|
var parseFile = function(data){
|
|
console.log(data);
|
|
}
|
|
fs.readFile(process.argv[2], 'utf8', function(err, data){
|
|
if(err){
|
|
console.log(err);
|
|
} else {
|
|
parseFile(data);
|
|
}
|
|
});
|