in reply to Generic output file
Hi,
Just a hint, I would probably use pack and unpack to do this.
But 'there is more than one way to do it'.
J.C.