Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 182 Vote(s) - 3.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Does a WriteStream have to be closed?

#1
I used `var writeStream = fs.createWriteStream('...')` to open a WriteStream, but there is no `writeStream.close()` function. How is this handled in node?
Reply

#2
Call `stream.end()`

[To see links please register here]

Reply

#3
Stream Has to be close after you done your file's writing work.
use

```
stream.end()
```
1. You can't use **stream.write('xxx')** after **stream.end()**.
2. While you don't have end/close the writeable stream, you/other can write into file anytime, and NodeJS will keep writable stream's reference in RAM.
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through