hitechoutlaw
Well-known member
ive seen this being used before but for some reason i cant get it to work. could some1 tell me what is wrong with my code:
thanks
Code:
If OpenFileDialog1.ShowDialog = DialogResult.OK Then
Dim Read As New System.IO.StreamReader(OpenFileDialog1.FileName)
Dim Line() As Integer
Dim i As Integer = 0
For Each i In Line
Line(i) = Read.ReadLine
Next Error occurs here
TextBox1.Text = Line(0)
TextBox2.Text = Line(1)
TextBox3.Text = Line(2)
End If