Skip to content

Instantly share code, notes, and snippets.

@Xedii
Created December 28, 2018 13:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Xedii/0df3ad9bb763b5acc93eef5f46dee301 to your computer and use it in GitHub Desktop.
Save Xedii/0df3ad9bb763b5acc93eef5f46dee301 to your computer and use it in GitHub Desktop.
const main = inputFile => {
const readStream = fs.createReadStream(inputFile, { encoding: 'utf8' });
readStream.on('data', (line) => {
console.log(line);
});
readStream.on('end', () => {
console.log('SUCCESS!!');
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment