读写
2023年06月10日
一、fs.createReadStream.pipe(fs.createWriteStream())
const readStream = Fs.createReadStream(
"/Users/zhangwenqiang/bolawen/scripts/test/a/b/c.md"
);
const writeStream = Fs.createWriteStream(
"/Users/zhangwenqiang/bolawen/scripts/test/a/b/d.md"
);
readStream.pipe(writeStream);