List of Exercises

How to Read csv File in C#

    private void readCSV_Click(object sender, EventArgs e)
      OpenFileDialog opf = new OpenFileDialog();
      opf.Filter = "csv File|*.csv";
      if (opf.ShowDialog() == DialogResult.OK)
        string[] lines = System.IO.File.ReadAllLines(opf.FileName);
        string[][] data = new string[lines.Length][];
        int i = 0;
        foreach (string line in lines)
          data[i] = line.Split(del.Text.ToCharArray());
        var dd = data.ToList().ToList();

Download the project of Visual Studio 2013 in DropBox Download

How to Read csv File in C# || Parsing Delimited text or csv Data

Video Thumbnail