EDI Reader
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?
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
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.