abombss / FileHelpers

The FileHelpers are a free and easy to use .NET library to read/write data from fixed length or delimited records in files, strings or streams

Home Page:http://www.filehelpers.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FileHelpers Join the chat at https://gitter.im/MarcosMeli/FileHelpers

The FileHelpers are a free and easy to use .NET library to read/write data from fixed length or delimited records in files, strings or streams

If you want to start using the library go directly to the Quick Start Guide in the CHM.

Build Status

master: Build Status stable: Build Status

Downloads

You can download the last stable version from our build server at:

####Last Stable Build

Download the zip with the format: FileHelpers_x.x.x_Build.zip

Delimited Example

Source Data

    1732,Juan Perez,435.00,11-05-2002 
    554,Pedro Gomez,12342.30,06-02-2004 
    112,Ramiro Politti,0.00,01-02-2000 
    924,Pablo Ramirez,3321.30,24-11-2002 

Record Type

	[DelimitedRecord(",")]
	public class Customer
	{
		public int CustId;
		
		public string Name;

		public decimal Balance;

		[FieldConverter(ConverterKind.Date, "dd-MM-yyyy")]
		public DateTime AddedDate;
	}

Usage

  var engine = new FileHelperEngine<Customer>();

  // To Read Use:
  Customer[] res = engine.ReadFile("FileIn.txt");

  // To Write Use:
  engine.WriteFile("FileOut.txt", res);

Who needs the File Helpers Library ?

In almost every project there is a need to read/write data from/to a file of a specified format.

For example for log parsing, data warehouse and OLAP applications, communication between systems, file format transformations (for example from a fixed length to a CSV file).

This library aims to provide an easy and reliable way to accomplish this task.

License

The FileHelpers are licensed under the new BSD or LPGL, pick the best for you

FileHelpers Library source and binaries are completely free for commercial and non commercial use

Sponsors

Our build server is kindly provided by CodeBetter at FileHelpers Builds

We have also the awesome .Net tools from JetBrains.

YouTrack and TeamCity

About

The FileHelpers are a free and easy to use .NET library to read/write data from fixed length or delimited records in files, strings or streams

http://www.filehelpers.net


Languages

Language:C# 90.0%Language:HTML 9.0%Language:CSS 0.6%Language:PowerShell 0.2%Language:Smarty 0.1%Language:Batchfile 0.1%Language:Visual Basic 0.0%