NReco.Csv 1.0.0

Fast C# CSV parser

Fast C# CSV parser (stream reader, writer) for .NET Core.

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

Release Notes

How to use:

// parse CSV
using (var streamRdr = new StreamReader(inputStream)) {
 var csvReader = new CsvReader(streamRdr, ",");
 while (csvReader.Read()) {
   for (int i=0; i<csvReader.FieldsCount; i++) {
 string val = csvReader[i];
   }
 }
}

// generate CSV
using (var streamWr = new StreamWrite(outputStream)) {
 var csvWriter = new CsvWriter(streamWr);
 // write line
 csvWriter.WriteField("Value with double quote\"");
 csvWriter.WriteField("And with\nnew line");
 csvWriter.WriteField("Normal");
 csvWriter.NextRecord();
}

  • .NETFramework 4.5

    • No dependencies.
  • .NETStandard 1.5

  • .NETStandard 2.0

    • No dependencies.

Version History

Version Downloads Last updated
1.0.0 378 11/28/2018