Only tested on 856 Reads though the EDI file and organizes the HL segments by HLID value.
We used the Task Scheduler to set this program to run every minute. The first parameter is the input folder location and the second parameter is the output folder location.