9
Okunabilir bir akış nasıl kapatılır (bitmeden önce)?
Node.js'de okunabilir bir akış nasıl kapatılır ? var input = fs.createReadStream('lines.txt'); input.on('data', function(data) { // after closing the stream, this will not // be called again if (gotFirstLine) { // close this stream and continue the // instructions from this if console.log("Closed."); } }); Bu şundan daha iyi olurdu: input.on('data', …