comp.lang.ada
 help / color / mirror / Atom feed
From: Robert Dewar <robert_dewar@my-deja.com>
Subject: Re: Reading "leftover" chunks from files
Date: 1999/08/20
Date: 1999-08-20T00:00:00+00:00	[thread overview]
Message-ID: <7pjlfa$o45$1@nnrp1.deja.com> (raw)
In-Reply-To: 37BCD2F1.E0AECF04@Think.So

In article <37BCD2F1.E0AECF04@Think.So>,
  Matthew <I.Dont@Think.So> wrote:
> Greetings,
>
> This is a "what's the best way of doing this" question.
>
> I want to read in a file so that I can get fixed-length chunks
of data
> backwards, and also read in whatever data (smaller than the
chunk size)
> is left behind at the end of the file.

Direct_IO and Sequential_IO are NEVER appropriate for this kind
of job, since they output data in implementation dependent form.
Always use stream_io for a task like this, and then you have
complete control over what you read, and from where you read
it in the file.


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.




  reply	other threads:[~1999-08-20  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-08-20  0:00 Reading "leftover" chunks from files Matthew
1999-08-20  0:00 ` Robert Dewar [this message]
1999-08-20  0:00   ` tmoran
1999-08-20  0:00 ` Jean-Pierre Rosen
1999-08-20  0:00 ` Matthew
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox