Skip to content

Instantly share code, notes, and snippets.

@simong
Created August 28, 2013 13:54
Show Gist options
  • Select an option

  • Save simong/6366291 to your computer and use it in GitHub Desktop.

Select an option

Save simong/6366291 to your computer and use it in GitHub Desktop.
var fs = require('fs');
fs.readFile('scripts/users/0.txt', function(err, users) {
users = users.toString().split('\n');
users.forEach(function(user) {
user = JSON.parse(user);
console.log('%s - %s', user.userid, user.password);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment