FileHelpers - Library Examples

  • Contact / Feedback
  • Introduction
  • Download
  • Quick Start
  • Must Read
  • Examples
    • QuickStart
      • Read Delimited File
      • Write Delimited File
      • Read Fixed File
      • Write Fixed File
      • Read or Write Record by Record
      • Autoproperties
    • Missing Values
      • Handle Missing Values with Nullable
      • Handle Missing Values With FieldNullValue
    • Attributes
      • FieldTrim
      • FieldOrder
      • FixedLengthRecord FixedMode.AllowLessChars
    • Converters
      • Enum Converter
      • Custom Converter
    • Events And Notification
      • INotifyRead Interface
      • INotifyWrite Interface
      • Before/After Read Event Handling
      • Before/After Write Event Handling
    • ErrorHandling
      • ErrorMode.ThrowException
      • ErrorMode.IgnoreAndContinue
      • ErrorMode SaveAndContinue
    • Advanced
      • Dynamic Engine Options
      • Multiple Delimiters
      • Multi Record Processing
      • Smart Format Detector
    • Sorting
      • Sort Big File with Record Class
      • Sort Big File without Record Class 1
      • Sort Big File without Record Class 2
    • MasterDetail
      • Master Detail Custom Selector
      • Master Detail Common Selector
  • Credits
  • Invite us a beer
  • Contribute
  • Source Code
  • Api Docs (Sandcastle)
QuickStart
  • Read Delimited File
    How to read a Delimited File
  • Write Delimited File
    Example of how to write a Delimited File
  • Read Fixed File
    Example of how to read a Fixed Length layout file (eg COBOL output):
  • Write Fixed File
    Example of how to write a Fixed Record File
  • Read or Write Record by Record
    Using the FileHelperAsynEngine to work record by record
  • Autoproperties
    You can use autoproperties instead of fields
Attributes
  • FieldTrim
    How to use the [FieldTrim] attribute (useful for fixed length records)
  • FieldOrder
    Force field order with [FieldOrder] attribute
  • FixedLengthRecord FixedMode.AllowLessChars
    Options when working with fixed files and not all records have same length
Events And Notification
  • INotifyRead Interface
    Get Before/After Read events with the INotifyRead interface
  • INotifyWrite Interface
    Get Before/After Write events with the INotifyWrite interface
  • Before/After Read Event Handling
    Show how to implement read events
  • Before/After Write Event Handling
    Show how to implement write events
Advanced
  • Dynamic Engine Options
    Change the options of the engines at run time
  • Multiple Delimiters
    Write a file with different delimiters using the same record
  • Multi Record Processing
    Read or write a file with many different layouts
  • Smart Format Detector
    Detect the format from a flat file
MasterDetail
  • Master Detail Custom Selector
    Show how to implement Master detail reading using a selection subroutine
  • Master Detail Common Selector
    Show how to implement Master detail reading where record contains characters
Missing Values
  • Handle Missing Values with Nullable
    Using Nullable for missing values
  • Handle Missing Values With FieldNullValue
    How to read a file with some missing values and use the FieldNullValue attribute
Converters
  • Enum Converter
    When you have a string field in your files that can be better handled if you map it to an enum.
  • Custom Converter
    Explains how to extend the library with a new converter
ErrorHandling
  • ErrorMode.ThrowException
    Default Behavior. Read the file or reject the whole file
  • ErrorMode.IgnoreAndContinue
    Read the file dropping bad records
  • ErrorMode SaveAndContinue
    Read the file saving bad records
Sorting
  • Sort Big File with Record Class
    Shows how to sort a big file using a record class
  • Sort Big File without Record Class 1
    Shows how to sort a big file without a record class
  • Sort Big File without Record Class 2
    Shows how to sort a big file without a record class
Copyright © 2020 Devoo - Marcos Meli All rights reserved. Template Design by GeeksLabs