To return a DataSet from the CSV RRS feed

  • Question

  • I want to get a new DataSet from a CSV file. 

    How to make the copied list to a DataSet, returning the DataTable the list value?

    please see the following:

            public void CopiesCSV(string fileName)
                string[] list;
                string line;

                StreamReader reader = new StreamReade(fileName, System.Text.Encoding.Default);

                while ((line = reader.ReadLine()) != null)
                    list = line.Split(',');

    and what I should do next using ADO.net?

    I'm using SQL Server 2005 Express.

    Sunday, December 17, 2006 5:49 AM


All replies