Created
June 8, 2021 22:25
-
-
Save deepal/a5261986e165fe21e3928f3eb7d3f207 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs') | |
const original = fs.createReadStream('./original.txt') | |
const copy1 = fs.createWriteStream('./copy1.txt') | |
const copy2 = fs.createWriteStream('./copy2.txt') | |
original.pipe(copy1) | |
original.pipe(copy2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment