C#.Net Import/Export CSV Library
CSVLibraryAK provides CSV import and export feature in C#.NET using Datatable as primary data structure. You can install this library via Nuget packages or you can download pre-compile DLL library or you can download this code and compile the DLL library file yourself. You can use this library into your any C#.NET project that supports Datatable data structure. This library imports CSV file with or without header and with any number of columns into C#.NET Datatable structure. The import function will automatically detects the number of columns of the CSV file. Export method will export your data from C#.NET Datatable data structure to .csv format file.
// Initialization. bool hasHeader = true; string importFilePath = "C:\\import.csv"; string exportFilePath = "C:\\export.csv"; // Impot CSV file. DataTable data = CSVLibraryAK.Import(importFilePath, hasHeader); // Export CSV file. CSVLibraryAK.Export(exportFilePath, data);
Like, Share, Support, Subscribe!!!