Skip to content

asmak9/CSVLibraryAK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 

Repository files navigation

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. You can use this library into your any C#.NET 4.8 or above framework supported 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.

Nuget Installation Version 1.1.4: https://www.nuget.org/packages/CSVLibraryAK/

.NET Core Supported Nuget Library: https://www.nuget.org/packages/CSVLibraryAK.Core/

Copyright (c) Asma's Blog

Basic Usage

using CSVLibraryAK;

// 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);

Examples

  1. Console Application
  2. ASP.NET MVC Application
  3. WPF Application



Like, Share, Support, Subscribe!!!

E-Store Bytezaar: https://www.bytezaar.com/

About

Download Nuget Package v1.1.4

Topics

Resources

Stars

Watchers

Forks