How to load a csv file to a data table

Here is a simple and optimized method to load a csv file to a datatable object. I have gone through many situations when we can not store data in a database, instead have to store in an xml or csv file. This method helped managing those situations effectively. Here is the code for accomplishing this.

Here is how we are going to use it

Leave a Reply

Your email address will not be published. Required fields are marked *