Skip to content

modulexcite/KBCsv

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo

KBCsv

What?

KBCsv is an efficient, easy to use .NET parsing and writing library for the CSV (comma-separated values) format.

Why?

CSV is a common data format that developers need to work with, and .NET does not include intrinsic support for it. Implementing an efficient, standards-compliant CSV parser is not a trivial task, so using KBCsv avoids the need for developers to do so.

Where?

The easiest way to get KBCsv is to install via NuGet:

Install-Package KBCsv

Or, if you want the extensions:

Install-Package KBCsv.Extensions

Data-specific extensions are available as a separate package for .NET 4.5 (the other packages above are portable):

Install-Package KBCsv.Extensions.Data

How?

using (var reader = new CsvReader("data.csv"))
{
    reader.ReadHeaderRecord();

    while (reader.HasMoreRecords)
    {
        var record = reader.ReadDataRecord();
        var name = record["Name"];
        var age = record["Age"];
    }
}

Please see the documentation for more details.

Who?

KBCsv is created and maintained by Kent Boogaart. Issues and pull requests are welcome.

Primary Features

  • Very easy to use
  • Very efficient
  • Separate extension libraries to provide additional (but optional) features such as working with System.Data types
  • Portable Class Library that targets a wide range of platforms, including Xamarin
  • Full async support
  • Includes extensive documentation and examples in both C# and VB.NET
  • Conforms to the official CSV standard, RFC4180
  • Also conforms to pseudo-standards, such as this
  • Highly customizable, such as specifying non-standard value separators and delimiters
  • Very high test coverage

About

KBCsv is an efficient, easy to use .NET parsing and writing library for the CSV (comma-separated values) format.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 95.4%
  • Visual Basic .NET 3.2%
  • F# 1.4%