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成神之路

版权声明:
作者:倾城
链接:https://www.techfm.club/p/7297.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>