CSVReadWrite 1.0.0.1

dotnet add package CSVReadWrite --version 1.0.0.1
NuGet\Install-Package CSVReadWrite -Version 1.0.0.1
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="CSVReadWrite" Version="1.0.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CSVReadWrite --version 1.0.0.1
#r "nuget: CSVReadWrite, 1.0.0.1"
#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.
// Install CSVReadWrite as a Cake Addin
#addin nuget:?package=CSVReadWrite&version=1.0.0.1

// Install CSVReadWrite as a Cake Tool
#tool nuget:?package=CSVReadWrite&version=1.0.0.1

CSV Read Write

C# Developer find difficulties in writting and reading csv file.

The code here how you can serialize object to CSV and vice versa.

Here are step to Write Object CSV file.

Pre Requisite : CSV file Headings should match to propery of type

To Read CSV File

Step 1: Install Nuget Package using following command

Install-Package CSVReadWrite -Version 1.0.0

Step 2: Create Instance of CSVReader Class

ICSVReader reader = new CSVReader();

Step 3: Call read method ICSVReader, to Read Method you should have following parameter filepath and encoding type.

There two overloaded method one is taking file path other is taking file stream.

reader.Read<Employee>("Filepath", Encoding.UTF8); reader.Read<Employee>(FileStream, Encoding.UTF8);

This Read function will read CSV file and return the list of type.

To Write in CSV File

Step 1: Install Nuget Package using following command

Install-Package CSVReadWrite -Version 1.0.0

Step 2: Create Instance of CSVWritter Class

ICSVWritter writer = new CSVWritter();

Step 3: Call Write method to write List of type in CSV file

writer.Write<Employee>(EmployeeList, "FilePath","Delimeter");

This function Write List of object CSV File on specified location.

Product Compatible and additional computed target framework versions.
.NET Framework net461 is compatible.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has 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.0.1 771 7/16/2019