Skip to content

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

Notifications You must be signed in to change notification settings

StefanoPaparesta/FileHelpers

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FileHelpers

http://www.filehelpers.com - SourceForge Home: http://sf.net/projects/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.

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

Contact and Ideas

If you find that there is a feature that I should include, or you have a new idea (for the API, Source Code or Examples), please let me know, by sending an e-mail to marcos (at) filehelpers.com

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 83.3%
  • HTML 15.2%
  • CSS 0.9%
  • PowerShell 0.2%
  • JavaScript 0.2%
  • Smarty 0.1%
  • Other 0.1%