EDI File Parser

quickly Iterate over EDI files Line By Line

“The libraries are invaluable to our project”

Main Features

Details

EDIFileParser is a low-level, multi-threaded engine designed to stream and process massive EDI files line by line with maximum efficiency. It features intelligent, automatic delimiter detection and provides a clean iterator over every segment in the document. This makes it the perfect solution for scenarios where you need to process records sequentially on the fly or pipeline data directly into external systems without heavy memory overhead.
 
 

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