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,FREEMAIL_FROM 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!postnews.google.com!o80g2000hse.googlegroups.com!not-for-mail From: mhamel_98@yahoo.com Newsgroups: comp.lang.ada Subject: Re: Concatenating files Date: Sat, 22 Sep 2007 15:51:29 -0700 Organization: http://groups.google.com Message-ID: <1190501489.997747.273070@o80g2000hse.googlegroups.com> References: <1190237608.187880.115470@o80g2000hse.googlegroups.com> <1190293861.058191.238500@d55g2000hsg.googlegroups.com> <1190482683.826082.43190@50g2000hsm.googlegroups.com> NNTP-Posting-Host: 24.4.68.212 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: posting.google.com 1190501490 11093 127.0.0.1 (22 Sep 2007 22:51:30 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 22 Sep 2007 22:51:30 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.12) Gecko/20070508 Firefox/1.5.0.12,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: o80g2000hse.googlegroups.com; posting-host=24.4.68.212; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Xref: g2news2.google.com comp.lang.ada:2092 Date: 2007-09-22T15:51:29-07:00 List-Id: 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. On Sep 22, 1:07 pm, "Jeffrey R. Carter" wrote: > mhamel...@yahoo.com wrote: > > Thanks for the replies! How about this, instantiating Sequential_Io > > with a variant record? The header data can be put into a record > > easily enough, so I would write the first sequential record as a > > header type with the following as the original data records. The > > problem is, some of the header data will not be known until all the > > data records have been written. Is there a way to edit, in place, the > > first record of a sequential file? Thanks much again c.l.a! > > Sounds as if Ada.Direct_IO would be better. > > -- > 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