From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3939af2e1e61c8ee,start X-Google-Attributes: gid103376,public From: tmoran@bix.com (Tom Moran) Subject: Stream_IO Date: 1998/03/04 Message-ID: <34fcb5c5.33132164@SantaClara01.news.InterNex.Net>#1/1 X-Deja-AN: 330609814 Organization: InterNex Information Services 1-800-595-3333 Newsgroups: comp.lang.ada Date: 1998-03-04T00:00:00+00:00 List-Id: Is there a way to use Stream_IO to read a file produced by other than the program doing the reading, in particular, a file binary file produced, say, with C? The RM indicates the representation is implementation defined, and 'read apparently quite ignores rep clauses, so I find one compiler reads integer things of 'size 8 or 16 as 16, and another reads size 16 things as size 32. I hate to read into a String and then do Unchecked_Conversions or 'address overlays, but I don't see any other portable approach. Help!