I have the code below and I need to write the data returned from the 'Test' to a text folder, Results.txt.
The code runs and create a file but the file only consists of System.String[]
I am sure it is all to do with convert from string, but I am self taught on vb.net and still learning.
Any help would be greatly apprecated.
Thanks
Gareth
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
Dim Parser As New FileParser("C:\BEM Live\SourceData\Training.txt")
Dim Test As String() = Parser.GetFileLines
Dim Writer As New StreamWriter("C:\BEM Live\SourceData\Results.txt")
Writer.Write(Test)
Writer.Close()
The code runs and create a file but the file only consists of System.String[]
I am sure it is all to do with convert from string, but I am self taught on vb.net and still learning.
Any help would be greatly apprecated.
Thanks
Gareth
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
Dim Parser As New FileParser("C:\BEM Live\SourceData\Training.txt")
Dim Test As String() = Parser.GetFileLines
Dim Writer As New StreamWriter("C:\BEM Live\SourceData\Results.txt")
Writer.Write(Test)
Writer.Close()