EDI File Parser

quickly Iterate over EDI files Line By Line

“The libraries are invaluable to our project”

Main Features

  • Multi-threaded EDI parser
  • Parses any EDI file (X12 and EDIFACT)
  • Auto detection of segment, element and composite delimiters
  • Creates a line by line iterator over EDI file data
  • Extremely easy to use API

Details

EDIFileParser is a low level multi-threaded component that provides a fast and easy way to parse EDI files line by line.  It auto detects all special delimiters characters and provides an iterator over all EDI segments.   EDIFileParser is used in scenarios where developers need to read and process EDI file lines one by one and possibly feed that data into other programs or systems.
 
 

The Code

// Create a new instance of EDIFileParser
EDIFileParser parser = new EDIFileParser("SampleEDI.txt");

// Start loading the file on a background thread
parser.BeginFileLoad();

// Iterate over the EDI file
while ( !parser.Finished()){
    string ediLine  = parser.NextLine();
}

EDIValidator, EDIFileLoader, EDIFileSplitter and EDIFileJoiner use EDIFileParser internally to parse EDI data quickly