comp.lang.ada
 help / color / mirror / Atom feed
From: mheaney@ni.net (Matthew Heaney)
Subject: Re: Multiple instantiation of Ada.Direct_IO
Date: 1998/01/28
Date: 1998-01-28T00:00:00+00:00	[thread overview]
Message-ID: <mheaney-ya023680002801980909240001@news.ni.net> (raw)
In-Reply-To: 886003669.3982.0.nnrp-02.9e98a25e@news.demon.co.uk


In article <886003669.3982.0.nnrp-02.9e98a25e@news.demon.co.uk>, "Blake
Weston" <blake@dedlock.demon.co.uk> wrote:

>Hi there,
>
>I have a bit of a problem. Basically I am using Ada.Direct_IO to read /
>write to a file. The problem being I wish to write records of differing
>types to the file, without closing the file and re-opening it.
>
>Ada 95 will not even let me open the same file as two different file_type
>variables as this creates a Use Exception error.
>
>Can anybody help?

It sounds like you want to perform heterogeneous I/O.  Direct_IO is for
homogeneous I/O.  Try Ada.Stream_I/O instead.

--------------------------------------------------------------------
Matthew Heaney
Software Development Consultant
<mailto:matthew_heaney@acm.org>
(818) 985-1271




  reply	other threads:[~1998-01-28  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-01-28  0:00 Multiple instantiation of Ada.Direct_IO Blake Weston
1998-01-28  0:00 ` Matthew Heaney [this message]
1998-01-29  0:00   ` Nick Roberts
1998-02-01  0:00 ` Robert Dewar
replies disabled

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