Reading data from a CSV to an array of arrays (C#)
I have the CSV file opened, but I can't figure out how to put the resultant array from splitting the line into another array. I have the following code currently, hopefully it gives more of an idea of what I'm meaning: private void ReadFileToArray(StreamReader file) { int i = 0; string[][] FP_GamesArray; while (!file.EndOfStream) { string line = file.ReadLine(); if (!String.IsNullOrWhiteSpace(line)) { string[] values = line.Split(','); MessageBox.Show(values.ToString()); FP_GamesArray[i] = values; } i++; } } Any ideas? I get two errors: One saying Cannot implicitly convert type 'string[]' to