Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var inputArr; //Reformated Input of one line to many lines
- var Text; //inputArr transformed to a String
- var lineCounter = 0; //counts the expacted number of output lines
- const fs = require('fs');
- const writeStream = fs.createWriteStream('./output.txt');
- for(var i=0; i<= inputArr.length; i++) {
- writeStream.write(Text);
- lineCounter = lineCounter + 1;
- }
- writeStream.end();
Add Comment
Please, Sign In to add comment