|
|
|
|
|
by tkone
3206 days ago
|
|
or just fs.createReadStream('file.txt').pipe(fs.createWriteStream('new-file.txt')) Streams are too slow you say? fs.writeFileSync('new-file.txt', fs.readFileSync('file.txt')) I've never had a problem with no explicit copy, but I am very happy it has been added... |
|