Sunday 11 June 2017

Hello,I want to copy the file but everytimes the file is empty

Here is my code,maybe I missed something?

var fs = require('fs');
var read = fs.createReadStream('C:/Users/user/Downloads/community-app-developp/asd.txt');
var write = fs.createWriteStream('C:/Users/user/Downloads/community-app-developp/outasd.txt');
read.pipe(write);



via John

No comments:

Post a Comment