Skip to content

Instantly share code, notes, and snippets.

@Freyert
Last active December 29, 2015 21:34
Show Gist options
  • Select an option

  • Save Freyert/e2dfe10b381d19db878c to your computer and use it in GitHub Desktop.

Select an option

Save Freyert/e2dfe10b381d19db878c to your computer and use it in GitHub Desktop.
var fs = require('fs');
fs.readFile('./fileA.json', function(err, a) {
if(err) { throw err; }
else {
fs.readFile('./fileB.json', function(err, b) {
if(err) { throw err; }
else {
fs.readFile('./fileC.json', function(err, c) {
if(err) { throw err;}
else {
fs.readFile('./fileD.json', function(err, d) {
if(err) { throw err; }
else {
fs.readFile('./fileE.json', function(err, e) {
if(err) { throw err; }
else {
console.log(a, b, c, d, e);
}
});
}
});
}
});
}
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment