is an efficient, easy to use .NET parsing and writing library for the
(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
section. KBCsv is also available via NuGet as a Portable Class Library:
Or, if you want general extensions (also a PCL):
Data-specific extensions are available as a separate package for .NET 4.5:
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
- Portable Class Library that targets .NET 4.5, Windows 8, and Windows Phone 8 (version 2.0.2 can be used still if you require support for .NET 3.5 and 4.0, Silverlight 4.0 and 5.0)
- 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