Hi I have a txt file which I roughly have a sense of how to read as lines, followed by a tokeniser which breaks each line by a comma or space. After that, one of my 'parts' in each line needs to be further broken down. It's actually a series of doubles seprated by a space rather than a comma which is used for the first tokeniser. I want to cycle through each value in this array and use the value to drive the angle of a pie segment but I am not sure how to cycle through arrays....I'm not really sure about the difference between arrays and lists.
my data is in the following format: ... Canada Lynx,2400.0,75.0,15.0,0.0,0.0,10.0,0.0 Mountain Lion,4000.0,75.0,15.0,0.0,0.0,10.0,0.0 Siberian Tiger,1200.0,75.0,15.0,0.0,0.0,10.0,0.0 ... and the code I'm having trouble wrapping my head around... For Each line As String In lines Dim parts As String() = line.Split(",".ToCharArray()) Dim label As String = Convert.ToString(parts(0)) Dim area As Double = Convert.ToDouble(parts(1)) Dim pie As String = Convert.ToString(parts(2)) Dim pieValuesStr As String() = pie.Split(" ".ToCharArray()) Dim pieValuesDbl As New List(Of Double) How do I assemble a list of doubles for each pie that I can cycle through? I figure this an easy one but my inexperience with VB is throwing me off.... thanks!