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.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1817d1850190aec8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-05-29 07:35:46 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!isdnet!psinet-france!psiuk-f4!psiuk-p4!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: Use of streams with Ada95 Date: Tue, 29 May 2001 10:28:47 -0400 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: <9f0bn1$ig0$1@nh.pace.co.uk> References: <3b0ed42f$1@news.zen.co.uk> NNTP-Posting-Host: 136.170.200.133 X-Trace: nh.pace.co.uk 991146529 18944 136.170.200.133 (29 May 2001 14:28:49 GMT) X-Complaints-To: newsmaster@pace.co.uk NNTP-Posting-Date: 29 May 2001 14:28:49 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:7843 Date: 2001-05-29T14:28:49+00:00 List-Id: Look at my web page (http://www.mcondic.com/) on the Ada Programming page for a collection of code named "gnat_examples.chop" Search it for "Streams". There are a couple of programs in there that do I/O to files using streams. Note that to utilize streams with structured data (records, etc), you have a kind of two stage process. First you have to use the 'Read and 'Write (or 'Input & 'Output) to get the structured data into the stream, then use the Stream_IO facilities to get the data out or in to the file. I may have a more detailed example around here somewhere of actually making that happen if you need it, but I'd have to dig. If you know how to get the data into and out of the stream, the I/O should be pretty straightforward. MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com Web: http://www.mcondic.com/ "Mike" wrote in message news:3b0ed42f$1@news.zen.co.uk... > Any one got an example of using streams for offline storage, i.e. to provide > interface to write and read back from storage. Booch and Barnes don't seem > to describe this in much detail > > Thanks > > Mike > >