string filePath = "data.txt"; // CSV File int count = 0; string[,] list = new string[6, 4]; private void App_Load(object sender, EventArgs e) { FileStream fstrm = new FileStream(path, FileMode.Open, FileAccess.Read); StreamReader sread = new StreamReader(fstrm); while (!sread.EndOfStream) { string line = sr.ReadLine(); string[] parts = line.Split(','); for (int i = 0; i < parts.Length; i++) { list[count, i] = parts[i]; } count++; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)