Read CSV File Using C# ASP.Net
In this article we will see how we can fetch data from a CSV file and can export it to a DataReader so that we can show it row by row.. Here is how it works:
First you have to declare two string variables and their properies for store directory and filename of csv file which you want to extract data.
In the second step connect to the data source and fill it to the dataset.
In the third step extract data to DataTable from generated DataSet.