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-16 10:55:54 PST Path: bga.com!news.sprintlink.net!deathstar.cris.com!news1.oakland.edu!vtc.tacom.army.mil!ulowell!europa.eng.gtefsd.com!howland.reston.ans.net!vixen.cso.uiuc.edu!uchinews!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: 14 Sep 1994 22:39:25 GMT Organization: RMIT, Melbourne, Australia Distribution: world Message-ID: <357u2t$ho8@goanna.cs.rmit.oz.au> References: <355kao$38d@goanna.cs.rmit.oz.au> NNTP-Posting-Host: dalesmac.cs.rmit.edu.au X-UserAgent: Version 1.1.3 X-XXMessage-ID: X-XXDate: Thu, 15 Sep 94 16:39:45 GMT Date: 1994-09-14T22:39:25+00:00 List-Id: Subject: Re: Portable way to read/write from a binary file? From: Robert Dewar, dewar@cs.nyu.edu Date: 13 Sep 1994 23:51:00 -0400 In article <355rv4$eg8@gnat.cs.nyu.edu> Robert Dewar, dewar@cs.nyu.edu writes: >sequential_io instantiated for a byte or character type may work, but is >not guaranteed, and may well be gruseomely slow. > >best get is just to use pragma interface and use the appropriate unix >routines directly, whjy not> Because I wanted a portable solution that wasn't tied to a particular operating system. It may be that there are comparable routines on _all_ operating systems, but it still (potentially) leaves you with code to change when porting. 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...