I have a text file that has some fields with delimiter of ",". how do i pass each value inside the text file to individual label boxes i have..
i'm not sure how to continue, this is what i have..
Private Sub Phone_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim psrdCurrent As System.IO.StreamReader = New System.IO.StreamReader("C:\phone.txt")
Dim pstrLine, pstrFile As String
pstrLine = psrdCurrent.ReadToEnd()
Do Until pstrLine = Nothing
pstrFile += pstrLine & CrLf
pstrLine = psrdCurrent.ReadLine()
Loop
psrdCurrent.Close()
End Sub
End Class
Text File has:
3.33,4.44,5.55,6.66
1.11,2.22,3.33,4.44
6.66,7.77,8.88,9.99
..
..
I wish to assign example 3.33 to variables and 4.44 to another variable, how do i do that?
i'm not sure how to continue, this is what i have..
Private Sub Phone_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim psrdCurrent As System.IO.StreamReader = New System.IO.StreamReader("C:\phone.txt")
Dim pstrLine, pstrFile As String
pstrLine = psrdCurrent.ReadToEnd()
Do Until pstrLine = Nothing
pstrFile += pstrLine & CrLf
pstrLine = psrdCurrent.ReadLine()
Loop
psrdCurrent.Close()
End Sub
End Class
Text File has:
3.33,4.44,5.55,6.66
1.11,2.22,3.33,4.44
6.66,7.77,8.88,9.99
..
..
I wish to assign example 3.33 to variables and 4.44 to another variable, how do i do that?