Amazon Wish List News RSS feed. Development Blog Browse the Forums  
  Overview - Downloads - Examples - News Feed - Contact Info -

Decimal Custom Converter (for fixed length files)

In the FixedLength records when you need to read decimal info you donīt have the decimal bacause this is donīt needed. This example explain how to read that.

If you like to parse a file with a field that has different parsing rules you can define a CustomConverter, for example if you have this source file:

This is a FixedLength record file with 6 chars for the Producto Id and 8 places for each Price (6.2) the record class must be like this:

The last step is to define the converter, you must inherit from the ConverterBase

Done !! you can actually parse the file with.

See also

Must Read - Quick Start Guide - Attributes List - F.A.Q. - Examples of Use - Contacts & Credits - Donations

© 2005-07 to Marcos Meli

FileHelpers on SourceForge
Browse the Forums Development Blog
Support the project
Devoo Software
Powered by:

Source Forge Thanks Jetbrains for support us !! Thanks BB Software for support us !! TestDriven.NET Code Coverage by Clover.NET Code Project Article Larkware News Sharp Toolbox