Created
April 11, 2020 08:46
-
-
Save Mayankgupta688/72d86b083a57824a5c5e69d52921bc08 to your computer and use it in GitHub Desktop.
Node Streams
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
var fs = require('fs'); | |
var fileReadStream = fs.createReadStream('./largeFile.html'); | |
fileReadStream.on('data', function(chunk) { | |
console.log("Reading In Progress....") | |
console.log(chunk.toString()) | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment