comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin David Condic" <marin.condic.auntie.spam@pacemicro.com>
Subject: Re: Use of streams with Ada95
Date: Tue, 29 May 2001 10:28:47 -0400
Date: 2001-05-29T14:28:49+00:00	[thread overview]
Message-ID: <9f0bn1$ig0$1@nh.pace.co.uk> (raw)
In-Reply-To: 3b0ed42f$1@news.zen.co.uk

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" <mikecorney@zen.co.uk> 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
>
>





      parent reply	other threads:[~2001-05-29 14:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-25 21:53 Use of streams with Ada95 Mike
2001-05-25 21:59 ` Ted Dennison
2001-05-25 22:15   ` Mike
2001-05-25 22:00 ` James Rogers
2001-05-25 22:27   ` Mike
2001-05-25 23:46     ` chris.danx
2001-05-26  0:43       ` Mike
2001-05-26 16:43         ` chris.danx
2001-05-29 14:28 ` Marin David Condic [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox