EDI Reader

Post author
m_api03

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?

Comments

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.

    0

Please sign in to leave a comment.