| Node.js Reading Stream
Node.js Reading from stream
To read data from any text file. And below is the sample of text file which contains the below text data.
Text file content
Now we will create a JavaScript file which named main.js and contain the below code:-
File: main.js
Now we open the node.js command prompt and run the below command
node main.js
| | |