I'm new to VB (I'm a SAS and C++ programmer that learned VB recently) and writing a program to export numerical data to a .csv file. I have been using System.IO.writeline(string) to write to the file - the numerical data is being manipulated in string form.
My problem is this- after the 28th character, the exported data wraps to the next line. So, instead of output that looks like this:
I get output in the file that looks like this:
Since I'll be reading this .csv file into SAS, this is terribly problematic.
The relevant code lines look like this...
Where Output_Data is the string.
Thank you very much in advance for any help.
My problem is this- after the 28th character, the exported data wraps to the next line. So, instead of output that looks like this:
7,16,+3.54,+2.36,+2.28,3.932,1.345
I get output in the file that looks like this:
7,16,+3.54,+2.36,+2.28,3.932
,1.345
Since I'll be reading this .csv file into SAS, this is terribly problematic.
The relevant code lines look like this...
VB.NET:
Dim data_outfile As System.IO.File
Dim output_write As System.IO.StreamWriter
output_write = data_outfile.CreateText("C:\...\Data.txt")
...
output_write.WriteLine(Output_Data)
output_write.Close()
Where Output_Data is the string.
Thank you very much in advance for any help.
Last edited by a moderator: