Hi Sergey!

On Sun, 31 Oct 2021 02:25:42 -0700 (PDT)
Сергей Забабурин <[email protected]> wrote:

> Hi.
> I am mount file in workerfs. 
> In documentation i see methods read for streams reading.
> ```
> var data = new Uint8Array(32); 
> var stream = FS.open('dummy', 'w+');
> FS.write(stream, data, 0, data.length, 0); 
> FS.close(stream);
> ```
> But how can i read all the files ?
> Where can i see example how can i create readable stream  in js ?
> 

See https://emscripten.org/docs/api_reference/Filesystem-API.html and
https://nodejs.org/api/fs.html .

hope that helps.

-- 

Shlomi Fish       https://www.shlomifish.org/
Let’s talk about restores instead of backups - https://is.gd/WatQqu

Who would win in a fight? Charlemagne, Charles Dickens, Charles Darwin or
Carlos “Chuck” Norris? If Summer Glau was the arbiter, she would just kill all
of them and declare herself the winner.
    — https://www.shlomifish.org/humour/bits/facts/Summer-Glau/

Please reply to list if it's a mailing list post - https://shlom.in/reply .

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/20211101111219.2ddbdaef%40shlomifish.org.

Reply via email to