Computer scienceBackendNode.jsCore ConceptsInternal modulesStreams

What are streams?

Readable stream

Report a typo

The input.txt file is located in the source folder relative to the directory where the executable is located. Create a read stream to read the file.

You do not need to execute this function. Just write a piece of code

Sample Input 1:

Sample Output 1:

true
Write a program in JavaScript
const fs = require('fs');

function reader() {
const readStream = /* your code */
};
___

Create a free account to access the full topic