P
P
pegas2018-09-29 13:37:27
Node.js
pegas, 2018-09-29 13:37:27

How to write data to a file through a stream?

There is data in the result variable . You can write them using the fs.writeFile( txt.txt, result , () => {} ); It will be asynchronous, but not threaded. There are many examples of streaming writing to a file from a file, but I need to write to a file from a variable

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2018-09-29
@0xD34F

createWriteStream

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question