I'm working with CSV but all the tutorials I've read use 2D Lists.
private void cargaCSV()
{
List<string[]> values = new List<string[]>();
var reader = new StreamReader(File.OpenRead(*my file*));
while (!reader.EndOfStream)
{
string line = reader.ReadLine();
values.Add(line.Split(';'));
}
}
My problem is my project works with 2D String Array.
I tried the following:
string [,] Data = values.ToArray();
I want to convert the 2d list into 2d array