Skip to content

A simple .Net library used to format data into comma-separated values (CSV)

License

Notifications You must be signed in to change notification settings

SyntaxSolutions/csvbuilder-net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSV Builder for .Net

A simple .Net library used to format data into comma-separated values (CSV).

Features

  1. RFC 4180 standard compliant
  2. UTF-8 encoded.
  3. Excel compatible.
  4. Compatible with frameworks: .NET Standard 2.0, .NET Framework 4.0

Installation

PM> Install-Package SyntaxSolutions.CsvBuilder

Example

using SyntaxSolutions.CsvBuilder;

var builder = new CsvBuilder();

var headers = new CsvRow();
headers.AddCell("Header 1");
headers.AddCell("Header 2");
headers.AddCell("Header 3");
builder.AddHeaders(headers);

var row = new CsvRow();
row.AddCell("Cell 1");
row.AddCell("Cell 2");
row.AddCell("Cell 3");
builder.AddRow(row);

byte[] fileContents = builder.GetBytes();

About

A simple .Net library used to format data into comma-separated values (CSV)

Resources

License

Stars

Watchers

Forks

Packages

No packages published