Splitting a String into Segments

Hi all,
I have a stramreader that reads lines from a .csv file.
I set a string variable as the read line ie: 32,5,2,76,34,8,5,66
What I need to do is split the line so that I can populate variable with the numbers in the line.
Can someone let me know the easiest way of splitting the line of text at the commas so i can get the individual numbers.
Many Thanks
kiranboiAsked:
Who is Participating?
 
TimCotteeConnect With a Mentor Commented:
Dim MyArray() As String = MyString.Split(",")

This will give you an array containing the numbers. All you then need to do is do something with those elements:

For Each Num As String In MyArray
  Msgbox Ctype(Num,Integer)
Next

For example
 
0
All Courses

From novice to tech pro — start learning today.