is an efficient, easy to use .NET parsing and writing library for the CSV
(comma-separated values) format.
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.
Documentation, binaries, and source for KBCsv can be downloaded from the releases
section. KBCsv is also available via NuGet:
Or, if you want the extensions too:
using (var reader = new CsvReader("data.csv"))
var record = reader.ReadDataRecord();
var name = record["Name"];
var age = record["Age"];
the documentation and source for more examples in both C# and VB.NET.
KBCsv is currently developed solely by Kent Boogaart
I wrote KBCsv a number of years ago when I was working with massive (> 4GB) CSV data files. Existing CSV libraries were either not fast enough, clumsy to use, or both.
- Very easy to use
- Very efficient
- A separate extensions library to provide useful additions to KBCsv such as working with System.Data types
- Runs on .NET 3.5/4.0/4.5, Silverlight 4/5, as well as mono
- Full async support
- Includes extensive documentation and examples in both C# and VB.NET
- Conforms to available standards as found here and here
- Highly customizable, such as specifying non-standard value separators and delimiters
- Very high test coverage