标签: node.js
我使用var writeStream = fs.createWriteStream('...')打开WriteStream,但没有writeStream.close()函数。如何在节点中处理?
var writeStream = fs.createWriteStream('...')
writeStream.close()
答案 0 :(得分:56)
致电stream.end()
stream.end()
http://nodejs.org/api/stream.html#stream_stream_end