I am trying to use TextIo to create a CSV. It seems simple enough, but my .csv isn't showing items separated into columns when opening in Excel. Code:
#File
TextIo csvFile;
new FileIOPermission("C:\Temp\csvFile.csv", #io_write).assert();
csvFile = new TextIo("C:\Temp\csvFile.csv", #io_write);
csvFile.outFieldDelimeter(',');
If (!csvFile ... ... Throw error if issue with file exists
while select custTable
{
csvFile.write(custTable.AccountNum, custTable.Name());
or
csvFile.writeExp([custTable.AccountNum, custTable.name()]);
}
//Revert Assert
Neither of those ('write' or 'writeExp') seem to be doing it right. They end up in one column in excel with a comma between the values.