uiowa.DelimitedDataHelper 1.0.7

dotnet add package uiowa.DelimitedDataHelper --version 1.0.7
                    
NuGet\Install-Package uiowa.DelimitedDataHelper -Version 1.0.7
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="uiowa.DelimitedDataHelper" Version="1.0.7" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="uiowa.DelimitedDataHelper" Version="1.0.7" />
                    
Directory.Packages.props
<PackageReference Include="uiowa.DelimitedDataHelper" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add uiowa.DelimitedDataHelper --version 1.0.7
                    
#r "nuget: uiowa.DelimitedDataHelper, 1.0.7"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package uiowa.DelimitedDataHelper@1.0.7
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=uiowa.DelimitedDataHelper&version=1.0.7
                    
Install as a Cake Addin
#tool nuget:?package=uiowa.DelimitedDataHelper&version=1.0.7
                    
Install as a Cake Tool

Delimited Data File Helper

Reader and Writer for Delimited Data File (csv, tab/pipe delimited files)

 NuGet Coverage Status

This is a demo library for my learning and practice purposes.


  1. Why need to have this little library?

    There are many csv libraries out there, but I still prefer to write my own. First reason is that it is not so difficult to write a reader and writer. Second, most of my files don't need cumbersome settings for reader and writer. I just want things become easy and simple.

  2. Usage

  • By default, csv file reader and writer will read and write "" quoted entries.
  • By default, all delimited file reader will trim starting/ending white spaces of each entry.
  • By default, all delimited file writer will write a header row in the output file.
var data = new CsvFile("filename.csv").GetData<Contact>();
data.WriteToCsvFile("output.csv");

If you want to skip first n rows,

var data = new PipeDelimitedFile("input.csv")
        .SkipNRows(1)
        .GetData<Contact>()
        .ToList();

If you don't want to trim starting/ending white spaces of each entry,

var data = new TabDelimitedFile("input.txt")
        .SkipNRows(1)
        .GetData<Contact>(new DelimitedFileReaderConfig(false))
        .ToList();

If you don't want to write header in the output file,

var config = new CsvWriterConfig {WriteHeader = false};
data.WriteToCsvFile("output.csv", config);
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.7 526 9/13/2022
1.0.6 469 9/13/2022
1.0.5 468 9/13/2022
1.0.4 655 12/13/2019
1.0.3 589 11/26/2019
1.0.2 593 11/11/2019
1.0.1 842 11/26/2018
1.0.0 929 9/2/2018