嗨嗨大家好,我是菜鳥前端工程師,敬請大家鞭小力點
var fs = require('fs'); var createRead = fs.createReadStream('0218.txt'); //開啟readStream createRead.on('close',function(){ console.log('The file is close'); }); createRead.on('open',function(){ console.log('The file is open'); });
沒有留言:
張貼留言