comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: Multiple instantiation of Ada.Direct_IO
Date: 1998/02/01
Date: 1998-02-01T00:00:00+00:00	[thread overview]
Message-ID: <dewar.886367773@merv> (raw)
In-Reply-To: 886003669.3982.0.nnrp-02.9e98a25e@news.demon.co.uk


Blake asks

<<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?

Thanks

Blake
>>


GNAT fully implements file sharing, but there is a penalty involved in
the use of this feature -- you have to read the section of the manual
on file sharing, and I understand that this is too much of a burden for
many people :-)

to be fair, any approach using file sharing is NOT necessarily portable,
which is why GNAT does not allow it by default!





      parent reply	other threads:[~1998-02-01  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
1998-01-29  0:00   ` Nick Roberts
1998-02-01  0:00 ` Robert Dewar [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