From: "Jeffrey R. Carter" <spam.jrcarter.not@acm.nospam.org>
Subject: Re: Concatenating files
Date: Thu, 20 Sep 2007 04:28:24 GMT
Date: 2007-09-20T04:28:24+00:00 [thread overview]
Message-ID: <IFmIi.94231$Xa3.64705@attbi_s22> (raw)
In-Reply-To: <1190237608.187880.115470@o80g2000hse.googlegroups.com>
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
next prev parent reply other threads:[~2007-09-20 4:28 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 [this message]
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
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox