I\'m trying to parse a CSV file into a 2D array in C#. I\'m having a very strange issue, here is my code:
string filePath = @\"C:\\Users\\Matt\\Desktop\\Eve Spre
With Open File Dialog
OpenFileDialog opn = new OpenFileDialog();
if (opn.ShowDialog() == DialogResult.OK)
{
StreamReader sr = new StreamReader(opn.FileName);
List data = new List();
int Row = 0;
while (!sr.EndOfStream)
{
string[] Line = sr.ReadLine().Split(',');
data.Add(Line);
Row++;
Console.WriteLine(Row);
}
}