CSV.NET 0.3.0

A simple .NET Library for CSV-File access.

Install-Package CSV.NET -Version 0.3.0
dotnet add package CSV.NET --version 0.3.0
<PackageReference Include="CSV.NET" Version="0.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CSV.NET --version 0.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

csv-dotnet

Windows: Build status
Linux: Build Status

A simple .NET library for CSV file access.
It's inspired by the Python csv module.

Changelog

  • [x] CSV Reader
  • [ ] CSV Writer

Usage

StreamReader Extension Example

Import the CSV library to extend the StreamReader class.

use CSV;

Use the StreamReader.ReadRows enumerator to get the rows.

using (var reader = new StreamReader("logfile.csv", Encoding.Default))
{
	foreach (var line in reader.ReadRows('\n', ',', 1))
	{
		Console.WriteLine(string.Join("\t", line));
	}
}

CsvReader Example

Import the CSV library to get access to the CsvReader class.

use CSV;

Use the CsvReader to get stateful access to the CSV file.

using (var reader = new CsvReader("logfile.csv", Encoding.Default, '\n', ',', 1))
{
    Console.WriteLine(string.Join("\t", reader.Header));

    foreach(var row in reader.Rows)
        Console.WriteLine(string.Join("\t", row));
}

csv-dotnet

Windows: Build status
Linux: Build Status

A simple .NET library for CSV file access.
It's inspired by the Python csv module.

Changelog

  • [x] CSV Reader
  • [ ] CSV Writer

Usage

StreamReader Extension Example

Import the CSV library to extend the StreamReader class.

use CSV;

Use the StreamReader.ReadRows enumerator to get the rows.

using (var reader = new StreamReader("logfile.csv", Encoding.Default))
{
	foreach (var line in reader.ReadRows('\n', ',', 1))
	{
		Console.WriteLine(string.Join("\t", line));
	}
}

CsvReader Example

Import the CSV library to get access to the CsvReader class.

use CSV;

Use the CsvReader to get stateful access to the CSV file.

using (var reader = new CsvReader("logfile.csv", Encoding.Default, '\n', ',', 1))
{
    Console.WriteLine(string.Join("\t", reader.Header));

    foreach(var row in reader.Rows)
        Console.WriteLine(string.Join("\t", row));
}

  • .NETFramework 4.5.2

    • No dependencies.
  • .NETFramework 4.6.2

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.3.0 649 4/14/2018
0.2.0 2,406 3/26/2016
0.1.0 530 3/20/2016