EDI document reader and writer