'test.txt ' John Doe, 21, 16, 1 ' Mary Doe, 20, 21, 2 ' Mike Doe, 20, 20, 1 Dim path As String = temp & "\test.txt" Dim temp_array() As String = IO.File.ReadAllLines(path) Dim temp_string as string = "" For i as Integer = 0 to temp_array.Length - 1 temp_string &= i & " --- " & temp_array(i) & vbNewLine Next textbox1.Text = temp_string 'output: ' 0 --- John Doe, 21, 16, 1 ' 1 --- ' 2 --- Mary Doe, 20, 21, 2 ' 3 --- ' 4 --- Mike Doe, 20, 20, 1 ' 5 ---
When I count the temp_array() I get 6 for the length.
Dim path As String = temp & "\test.txt" Dim temp_array() As String = IO.File.ReadAllLines(path) Dim count as Integer = temp_array.length
This post has been edited by clee06: 08 October 2012 - 10:19 AM

New Topic/Question
Reply




MultiQuote






|