E
eejit
This is VBNET2005
I feel like I'm missing something really obvious here.
I keep getting the error "Value of type 'string' cannot be converted
to '1 dimensional array of string'"
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button1.Click
Dim inputstream As New
System.IO.StreamReader("c:\testfile.txt")
Dim line As String
line = inputstream.ReadLine()
Dim testarray() As String = Split(line)
TextBox1.Lines = testarray(1)
inputstream.Close()
End Sub
End Class
Any help appreciated.
eejit
I feel like I'm missing something really obvious here.
I keep getting the error "Value of type 'string' cannot be converted
to '1 dimensional array of string'"
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button1.Click
Dim inputstream As New
System.IO.StreamReader("c:\testfile.txt")
Dim line As String
line = inputstream.ReadLine()
Dim testarray() As String = Split(line)
TextBox1.Lines = testarray(1)
inputstream.Close()
End Sub
End Class
Any help appreciated.
eejit