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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,1331b7c1f6d82fa7 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!attbi_s22.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Concatenating files References: <1190237608.187880.115470@o80g2000hse.googlegroups.com> <1190293861.058191.238500@d55g2000hsg.googlegroups.com> <1190482683.826082.43190@50g2000hsm.googlegroups.com> <1190501489.997747.273070@o80g2000hse.googlegroups.com> In-Reply-To: <1190501489.997747.273070@o80g2000hse.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s22 1190511949 12.201.97.213 (Sun, 23 Sep 2007 01:45:49 GMT) NNTP-Posting-Date: Sun, 23 Sep 2007 01:45:49 GMT Organization: AT&T ASP.att.net Date: Sun, 23 Sep 2007 01:45:49 GMT Xref: g2news2.google.com comp.lang.ada:2094 Date: 2007-09-23T01:45:49+00:00 List-Id: 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