跳到主要内容

读写

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);