From: "Jeffrey R. Carter" <spam.jrcarter.not@acm.nospam.org>
Subject: Re: Concatenating files
Date: Sun, 23 Sep 2007 01:45:49 GMT
Date: 2007-09-23T01:45:49+00:00 [thread overview]
Message-ID: <hzjJi.98894$Xa3.53515@attbi_s22> (raw)
In-Reply-To: <1190501489.997747.273070@o80g2000hse.googlegroups.com>
mhamel_98@yahoo.com wrote:
> Hi Jeff, I don't have any resources available in front of me, but I
> always thought Direct_Io was essentially the same as Sequential_Io
> save for the additional ability of retrieving, or reading, the "nth"
> record without having to start from the beginning of the file. Does
> Direct_Io allow editing, or writing, of said "nth" record without
> disrupting records written before or after? Or, does Direct_Io allow
> writing to the "nth" place? in which case I would start writing my
> data starting at 2, for instance, then when complete, write the first,
> or header record.
Ada.Direct_IO is specified in ARM A.8.4:
http://www.adaic.org/standards/05rm/html/RM-A-8-4.html
It includes the operations
procedure Read (File : in File_Type;
Item : out Element_Type;
From : in Positive_Count);
procedure Write(File : in File_Type;
Item : in Element_Type;
To : in Positive_Count);
You may read and write from any position in the file.
--
Jeff Carter
"Ada has made you lazy and careless. You can write programs in C that
are just as safe by the simple application of super-human diligence."
E. Robert Tisdale
72
prev parent reply other threads:[~2007-09-23 1:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-19 21:33 Concatenating files mhamel_98
2007-09-20 4:28 ` Jeffrey R. Carter
2007-09-20 11:41 ` Jacob Sparre Andersen
2007-09-20 13:11 ` gautier_niouzes
2007-09-22 17:38 ` mhamel_98
2007-09-22 20:07 ` Jeffrey R. Carter
2007-09-22 22:51 ` mhamel_98
2007-09-23 1:45 ` Jeffrey R. Carter [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