var fs = require("fs");
var rs = fs.createReadStream('./a.txt');
var ws = fs.createWriteStream('./copy.txt');
rs.on('data', function(chunk) {
ws.write(chunk);
});
It does't show me the write funciton when i enter "ws.", and i only see some functions such as "bind,toString,valueOf...".I don't know why and i need some help.
var fs = require("fs"); var rs = fs.createReadStream('./a.txt'); var ws = fs.createWriteStream('./copy.txt'); rs.on('data', function(chunk) { ws.write(chunk); });
It does't show me the write funciton when i enter "ws.", and i only see some functions such as "bind,toString,valueOf...".I don't know why and i need some help.