See if this helps.
'//----- Pre-requisites: 4 TextBoxes. -------\\
Dim arTemp() As String = {"text 1", "text 2", "text 3", "text 4"}'// your Array.
TextBox1.Text = arTemp(0)
TextBox2.Text = arTemp(1)
TextBox3.Text = arTemp(2)
TextBox4.Text = arTemp(3)
codeorder
Posting Virtuoso
1,915 posts since Aug 2010
Reputation Points: 255
Solved Threads: 384
Since you mentioned that you have a File with just one line as my "test.txt" File,
1/2/3/4/
..see if this helps.
Dim myFile As String = "C:\test.txt" '// your File.
If IO.File.Exists(myFile) Then '// check if File Exists.
'// read Text from File and Split into Arrays by the "/" char.
Dim z() As String = IO.File.ReadAllText(myFile).Split("/")
TextBox1.Text = z(0) '// Array 1.
TextBox2.Text = z(1) '// Array 2.
TextBox3.Text = z(2) '// Array 3.
TextBox4.Text = z(3) '// Array 4.
End If
codeorder
Posting Virtuoso
1,915 posts since Aug 2010
Reputation Points: 255
Solved Threads: 384