I need some code that will read a textfile line by line and show the lines in labels.
Example:
label1.text = line 1
label2.text = line 2
Please help. I am using Visual Studio 2005 - VB
-----
knxrb
Printable View
I need some code that will read a textfile line by line and show the lines in labels.
Example:
label1.text = line 1
label2.text = line 2
Please help. I am using Visual Studio 2005 - VB
-----
knxrb
Code:Dim lines() As String = System.IO.File.ReadAllLines("put the path to your text file here")
Label1.Text = lines(0)
Label2.Text = lines(1)
' Keep going until you get all the labels
Thanks!!!!!!!!!!!!!!!!!!!!!! :):):)