EasyCSVReader 2.0.0

dotnet add package EasyCSVReader --version 2.0.0
                    
NuGet\Install-Package EasyCSVReader -Version 2.0.0
                    
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="EasyCSVReader" Version="2.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EasyCSVReader" Version="2.0.0" />
                    
Directory.Packages.props
<PackageReference Include="EasyCSVReader" />
                    
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 EasyCSVReader --version 2.0.0
                    
#r "nuget: EasyCSVReader, 2.0.0"
                    
#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 EasyCSVReader@2.0.0
                    
#: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=EasyCSVReader&version=2.0.0
                    
Install as a Cake Addin
#tool nuget:?package=EasyCSVReader&version=2.0.0
                    
Install as a Cake Tool

EasyCSVReader

EasyCSVReader is a simple C# library for reading CSV files with ease. It provides a simple API to parse CSV data.

How to Use

  1. Install the EasyCSVReader package via the NuGet Package Manager:

    Install-Package EasyCSVReader
    
  2. Create a Reader instance and set some options if needed:

     var reader = new EasyCSVReader([bool IgnoreHeader] true; [char DefaultDelimiter] ",");
    
     //bool IgnoreHeader = Ignore the first row as header
     //char DefaultDelimiter = Set custom delimiter that is used if no other is specified
    
  3. Read a CSV file:

     //Parse a CSV file into a CSVFile object
     CSVFile file = csvReader.GetCSVFile("C:\Path\To\Your\File.csv");
    
  4. Access the data:

     file._lines[0]._fields[0]; //Access the first field of the first line
     int lineNumber file._lines[0].lineNumber; //Get the line number of the first line
    

I hope someone finds this library useful. Also, no license, so do whatever you want with it. Although Credit is always welcome.

Credit: </br> Idea and Programming - Mocbuilder

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  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.
  • net9.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
2.0.0 99 2/3/2026
1.0.0 190 12/22/2025