假设我有以下代码:
string sConnexionString = "MS_TableConnectionString";
此语句var fs = require('fs');
var stream1 = fs.createReadStream('file1.txt');
var stream2 = fs.createWriteStream('file2.txt');
var stream3 = fs.createWriteStream('file3.txt');
返回stream1.pipe(stream2);
,它是可写的,不可读。但是,如果我想再次管它,那会怎么样:
stream2
我是否需要将stream1.pipe(stream2).pipe(stream3);
创建为stream2
?如果是这样,怎么样?