There is no way that we can pause during read.
Suppose there is a huge file we are reading and we need to process something with each line or bunch of lines, we cannot pause the reading behaviour so that do some in-between processing.
fs.createReadStream however has a stream.pause() feature which is very useful.
There is no way that we can pause during read.
Suppose there is a huge file we are reading and we need to process something with each line or bunch of lines, we cannot pause the reading behaviour so that do some in-between processing.
fs.createReadStreamhowever has astream.pause()feature which is very useful.