EDI Reader

Post author

Is there a way to dynamically choose the reader (X12/Edifact)? For example, if a file is received it has to be opened and then validated to confirm if it is X12/Edifact. Is there some method for that?


1 comment

  • Comment author
    Zachary Spriggs

    I'd open the file and read maybe the first line. From that line, use some if statements to determine if what you've read so far matches X12 or EDIFACT. Then, handle the file with whichever reader you need.


Please sign in to leave a comment.