You can also use a data set to hold all the information from the file. I just read a section in my book that has the code. Here it is.

VB Code:
  1. Dim ds As New DataSet()
  2. Dim table As New DataTable("MyTable")
  3.  
  4. ds.Tables.Add("MyTable")
  5.  
  6. Dim counter As Integer
  7. Dim col As DataColumn
  8.  
  9. ' You only have three columns in your file, at least that is what I
  10. ' read in your previous post.  If you had more columns of text to
  11. ' be seperated, you would change this number accordingly.
  12. For counter = 0 to 2
  13.     col = New DataColumn("Column " & counter.ToString())
  14.     ds.Tables("MyTable").Columns.Add(col)
  15. Next
  16.  
  17. Dim reader As New StreamReader("YourFilePathAndName")
  18. Dim mystring As String
  19.  
  20. While reader.Peek <> -1
  21.     mystring = reader.ReadLine
  22.     ds.Tables("MyTable").Rows.Add(mystring.Split(","c))
  23.     'Instead of just splitting them, you might want to take off
  24.     'all leading and trailing spaces.
  25. End While