A
A
Alex Mirgorodskiy2020-05-12 11:11:06
Node.js
Alex Mirgorodskiy, 2020-05-12 11:11:06

I want to write a readable Class with my hands (for educational purposes), how to start reading data from a local file?

Hello everyone, I'm just learning the node, and it's very difficult to stream...
I want to write something like fs.createReadStream(fileName); Only with your own hands, for a better understanding.
That's actually the question, how to start uploading a file from the local area in chunks? Using the same fs.createReadStream is somehow stupid, since I want to write its likeness, and I want to understand what it uses inside itself, where can I pass the file path so that it starts reading?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question