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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1b0b51a62a52252f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-19 13:51:53 PST Path: supernews.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeed.mesh.ad.jp!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison Sender: usenet@www.newsranger.com References: Subject: Re: Standard Packages Message-ID: Date: Thu, 19 Apr 2001 20:51:34 GMT NNTP-Posting-Host: 209.208.22.130 X-Complaints-To: abuse@newsranger.com X-Trace: www.newsranger.com 987713494 209.208.22.130 (Thu, 19 Apr 2001 16:51:34 EDT) NNTP-Posting-Date: Thu, 19 Apr 2001 16:51:34 EDT Organization: http://www.newsranger.com Xref: supernews.google.com comp.lang.ada:7018 Date: 2001-04-19T20:51:34+00:00 List-Id: In article , Jason King says... > >The only issue I have is that I don't have a good reference for the >standard packages in the ada hierarchy. The best I can give is the online LRM at http://www.ada-auth.org/~acats/arm-html/RM-TOC.html . The Standard Libraries are in section A. >Maybe I'm dense, but the arm seems kind of obtuse to me. It can be a bit slow going. The best way to read the libraries is to read the package specification first, then read the text underneath. Text_IO is sort of a special case, in that there's a lot of extra verbage in the LRM about it. That's probably what got you confused. >My immediate problem is how to read/write binary files. >I've found text_io but that doesn't look like quite what I want. For non-text files, you'll want to use either Sequential_IO, Direct_IO, or Streams.Stream_IO. Which you need depends on their contents, and how you want to use them. Stream_IO is good for relatively unstructured data, or for when you want to read in whole arrays of data at once. Sequential_IO is good for reading from a file that consists of either a predefined record, or a series of them that you'd like to read one after the other. Direct_IO is good for situations where you'd like to use Sequential_IO, but you need to move the file pointer around manually. --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html home email - mailto:dennison@telepath.com