Sometimes, you find the need to parse Comma-Separated Values or CSV files dynamically into a DataTable. CSV files can be straight forward or complex. Complexity comes in when the data itself has embedded commas, quotes or line breaks. This
solution, written in C# and using the .NET framework's Regular Expression object can handle such complex formatting and has been tested to work with CSV formatted files saved from Microsoft Excel.
Willeus Acuña :)
Visit
hotblue.com - tons of advice on .NET programming!
Comprehensive .NET directory with 8,000+ articles indexed.