title: How to execute multiple .write() commands?
body: <p>I have here my code in node JS, how can i execute multiple .write() commands? the output of this code will create a test.xls file, when i open that file it only displays the first writeStream.write which is the header("Sl No"+"\t"+" Age"+"\t"+"Name"+"\n") and I want all of them (header, row1, row2) to execute all together and display all of them on the test.xls file</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>exports.post = function(req, res){
  
  var writeStream = fs.createWriteStream("test.xls");
  var header="Sl No"+"\t"+" Age"+"\t"+"Name"+"\n";
  var row1 = "0"+"\t"+" 21"+"\t"+"Rob"+"\n";
  var row2 = "1"+"\t"+" 22"+"\t"+"bob"+"\n";
  
  writeStream.write(header);
  writeStream.write(row1);
  writeStream.write(row2);
  writeStream.close();
    
  };</code></pre>
  </div>
  </div>
  </p>