I would like to save a file in the format of a .txt file. My code below saves the file but I always need to go into properties of that file and select the open as. Also when I open the file there is nothing written in the file.... its blank.
Dim Veldata as new Arraylist
If Me.SaveFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
Dim Stream As FileStream = New FileStream(Me.SaveFileDialog1.FileName, FileMode.Create)
Dim streamWriter As New StreamWriter(Stream)
saveAs = Me.SaveFileDialog1.FileName
'add the header information
For intloop 0 to VelData.Count-1