I have a file file.txt with the following:
And this code to read it and feed it to a jagged array:
string arr = new string;
string filelines = File.ReadAllLines("file.txt");
for (int i = 0; i < filelines.Length; i++)
arr[i] = filelines[i].Split(',').ToArray();
How would I do the same thing, but with a 2D array?