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 'string' and second saying Use of unassigned local variable 'FP_GamesArray'.
FP_GamesArray[i] = valuesline, the first error is underlining thevaluescode, and the second theFP_GamesArray[i]code.