Just posted a primer on how to parse EDI files if you are new to the standard.  It can be found in the EDI category of the articles on this site, shocking I know.