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!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns13feed!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> In-Reply-To: <1190237608.187880.115470@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 1190262504 12.201.97.213 (Thu, 20 Sep 2007 04:28:24 GMT) NNTP-Posting-Date: Thu, 20 Sep 2007 04:28:24 GMT Organization: AT&T ASP.att.net Date: Thu, 20 Sep 2007 04:28:24 GMT Xref: g2news2.google.com comp.lang.ada:2045 Date: 2007-09-20T04:28:24+00:00 List-Id: mhamel_98@yahoo.com wrote: > Hello c.l.a. I have a storage system for a program of mine that uses > two files for each object - a text header file via text_io and a data > file via sequential_io. I am wondering if there is an elegant way to > put the contents of these two files into one. The textual header bit > is fixed size/length. Any ideas? ObjectAda 95 on NT. You could use streams to first write the String(s) of the header, then the data. Or you could create a composite object with the fixed-length String(s) of the header and the data all in one, and write an object of that type with Sequential_IO. -- Jeff Carter "Hello! Smelly English K...niggets." Monty Python & the Holy Grail 08