I would like to write a string in he columns of a csv file using javascript. I'm using the below code, but it writes the entire string in 1 column.
var header="Number" + ',' + "Name" + ',' + "Description"  +   '\n' ;
this is how I create the csv fie:
    var fso = new ActiveXObject("Scripting.FileSystemObject"); 
    var s = fso.CreateTextFile("C:\\REPORT.csv");
Any suggestions?
 
     
     
    