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=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,da8a419b0e3fda81 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-09-19 14:10:51 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!agate!msuinfo!harbinger.cc.monash.edu.au!aggedor.rmit.EDU.AU!goanna.cs.rmit.oz.au!dalesmac.cs.rmit.edu.au!dale From: Dale Stanbrough Newsgroups: comp.lang.ada Subject: Re: Portable way to read/write from a binary file? Date: 19 Sep 1994 02:59:31 GMT Organization: RMIT, Melbourne, Australia Distribution: world Message-ID: <35iuqj$5dj@goanna.cs.rmit.oz.au> References: <355kao$38d@goanna.cs.rmit.oz.au> <122484@cup.portal.com> <122506@cup.portal.com> NNTP-Posting-Host: dalesmac.cs.rmit.edu.au X-UserAgent: Version 1.1.3 X-XXMessage-ID: X-XXDate: Mon, 19 Sep 94 20:59:51 GMT Date: 1994-09-19T02:59:31+00:00 List-Id: In article , kst@alsys.com writes: >For Ada 94 (assuming X=4 8-)}), I think Stream_IO does what you want. > Unfortunately not (as I read it!) Each object in a stream has a tag appended to it so that the procedure S'Class'Read can reconstruct the value from the tag contained within the stream (13.13.2.14). As well the representation of stream elements is implementation defined (13.13.2.17) The best solution seems to be to use pragma import or use the Posix_IO package. Dale ------------------------------------------------------------- Dale Stanbrough, RMIT, Melbourne, Australia, dale@rmit.edu.au GNU Ada 94 (GNAT) => the best $0 you'll ever spend. Available for DOS, Linux, OS/2, Sun Sparc, Sun Solaris, ... Coming to a GNU supported platform near you soon...