var fs = require('fs');
var stream = fs.createReadStream('data.json'),
writable = fs.createWriteStream('data_copy.json');
stream.pipe(process.stdout);
stream.pipe(writable);
var stream = fs.createReadStream('data.json'),
writable = fs.createWriteStream('data_copy.json');
stream.pipe(process.stdout);
stream.pipe(writable);
No comments:
Post a Comment