ob1kanobee
Programmer
Help! I am unable to correctly write to a comma-delimited file. What am I doing wrong?
var fso, f1, csvFile, outputLine;
var ForWriting = 2;
fso = new ActiveXObject("Scripting.FileSystemObject");
f1 = fso.GetFile("c:\\MyText.csv");
csvFile = f1.OpenAsTextStream(ForWriting, true);
csvFile.WriteLine("ArrayValue1,ArrayValue2,ArrayValue3");
csvFile.close();
When I open the written CSV file, all the array info. is on first cell.
var fso, f1, csvFile, outputLine;
var ForWriting = 2;
fso = new ActiveXObject("Scripting.FileSystemObject");
f1 = fso.GetFile("c:\\MyText.csv");
csvFile = f1.OpenAsTextStream(ForWriting, true);
csvFile.WriteLine("ArrayValue1,ArrayValue2,ArrayValue3");
csvFile.close();
When I open the written CSV file, all the array info. is on first cell.