Guest User

Untitled

a guest
Nov 13th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. var inputArr; //Reformated Input of one line to many lines
  2. var Text; //inputArr transformed to a String
  3. var lineCounter = 0; //counts the expacted number of output lines
  4.  
  5. const fs = require('fs');
  6. const writeStream = fs.createWriteStream('./output.txt');
  7.  
  8. for(var i=0; i<= inputArr.length; i++) {
  9. writeStream.write(Text);
  10.  
  11. lineCounter = lineCounter + 1;
  12. }
  13.  
  14. writeStream.end();
Add Comment
Please, Sign In to add comment