I’ve been using http://wiki.unity3d.com/index.php?title=CSVReader to parse excel files that I’ve converted into CSV, the output that I end up with is a two-dimensional string array [y,x] such that with this input:
A,1,!
B,2,@
myArray[0,0] would be A, [0,1] would be 1, and [1,0] would be B. Once I have the 2d string grid, I want to go down the list vertically, and assign each row to a single-dimensional array textRow in some custom class:
class myData {
string[] textRow;
}
The problem is, how do I programmatically articulate the concept of a row within the 2d grid? I won’t know how many columns there are in advance, so I can’t hard code it, but I’m not sure how to iterate across multiple dimensions.