Hi Oompa, regarding the second item, Integers are synonymous with Int32, not Int64. There's really no reason to use Int64, unless there are special circumstances (such as counting nanoseconds since 1900).
Change all your Int64 into Int32 and you should be fine. -- David Rutten [email protected] Robert McNeel & Associates On Apr 3, 9:59 pm, oompa_l <[email protected]> wrote: > Hi > > Last week I had a reason to produce a 2d list and I was stumped about > how to do just that. I figured a sort of hack way around the problem > for what I was working on but again I am confronted with a new need > for such a list and there's no real smart way around it, I don't > think. Does anyone have any ideas about this? > > My input data is in a format of a series of lines, with integers > separated by spaces, like the following: > 3 7 18 64 1 0 0 0 > 6 21 7 0 64 63 0 0 > 47 52 3 18 16 19 49 0 > 7 52 0 18 2 0 0 0 > 46 50 38 5 65 37 0 0 > 38 40 4 45 41 65 0 0 > > each line number matches an item in a list, and so do each of the > integer values within each of those lines. I want to break up this > initial file into a list wherein there is another list of integer > values... > > any ideas? > > second item, instead of posting a second time...I am getting an error > on a vb.net script that I can't figure out...what I'm doing is quite > simple and I have done it many times before. I am getting a script > exception that say that the input value was not in a correct format: > > If (Not IO.File.Exists(path)) Then > Print("Exit without reading") > Return > End If > > Dim lines As String() = IO.File.ReadAllLines(path) > > If (lines Is Nothing) Then > Print("File has no content") > Return > End If > > Dim neighbours As New List(Of Int64) > > For Each line As String In lines > Dim parts As String() = line.Split(" ".ToCharArray()) > Dim neighbourList As New List(Of Integer) > For Each value As String In parts > neighbours.Add(convert.ToInt64(value)) > Next > Next > > A = neighbours
