KBCsv
KBCsv is an efficient, easy to use .NET parsing and writing library for the CSV (comma-separated values) format.
Install / Use
/learn @kentcb/KBCsvREADME

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 streamReader = new StreamReader("data.csv"))
using (var csvReader = new CsvReader(streamReader))
{
csvReader.ReadHeaderRecord();
while (csvReader.HasMoreRecords)
{
var record = csvReader.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.Datatypes - Portable Class Library targetting netstandard 1.0
- Full
asyncsupport - 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
Related Skills
docs-writer
98.8k`docs-writer` skill instructions As an expert technical writer and editor for the Gemini CLI project, you produce accurate, clear, and consistent documentation. When asked to write, edit, or revie
model-usage
331.2kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
Design
Campus Second-Hand Trading Platform \- General Design Document (v5.0 \- React Architecture \- Complete Final Version)1\. System Overall Design 1.1. Project Overview This project aims t
arscontexta
2.8kClaude Code plugin that generates individualized knowledge systems from conversation. You describe how you think and work, have a conversation and get a complete second brain as markdown files you own.
