[Solved] C# How do I convert a CSV into an array?
You can start from this code, first read the file, second split the file since data is on different row, then store the result on array: using (StreamReader sr = new StreamReader(@”C:\Folder\Book1.csv”)) { string strResult = sr.ReadToEnd(); string[] result = strResult.Split(new string[] { Environment.NewLine }, StringSplitOptions.None); } 1 solved C# How do I convert a … Read more