VB.Net - Writing Strings to a comma delimited file
Posted on 2014-11-20
I am attempting to write data out to a comma delimited file using a For - Next loop.
Some of the strings in the array use a double quote ( " ) as you would use to indicate Inches. The first few elements of the array do not have the double quote and they work fine, however, once I reach an element that contains the double quote the code treats it differently and I end up with a long string that does not handle the comma as a delimiter.
Here is the code:
Dim objWriter As New System.IO.StreamWriter(MeasDataFileName, True)
For j = 0 To maxAinIx - 2
I need help to ensure that the code will treat each element as a separate entry and no have the double quotes mess up the output.