node流
const fs = require('fs');
var writeStream = fs.createWriteStream('indexwrite.txt');
var readerStream = fs.createReadStream('indexread.txt');
readerStream.pipe(writeStream);//文件可读A流入文件可写B
console.log('run end!')
node流最先出现在Python成神之路。
const fs = require('fs');
var writeStream = fs.createWriteStream('indexwrite.txt');
var readerStream = fs.createReadStream('indexread.txt');
readerStream.pipe(writeStream);//文件可读A流入文件可写B
console.log('run end!')
node流最先出现在Python成神之路。
共有 0 条评论