I used var writeStream = fs.createWriteStream('...') to open a WriteStream, but there is no writeStream.close() function. How is this handled in node?
var writeStream = fs.createWriteStream('...')
writeStream.close()
Call stream.end()
stream.end()
http://nodejs.org/api/stream.html#stream_stream_end
1.4m articles
1.4m replys
5 comments
57.0k users