process out of memory
var rl = require('readline').createInterface(require('fs').createReadStream('content.txt'), new require('stream'));
rl.on('line', function(line) {
console.log(line);
console.log('==');
});
rl.on('close', function() {
console.log('close file');
});
沒有留言:
張貼留言