comp.lang.ada
 help / color / mirror / Atom feed
From: Matthew <I.Dont@Think.So>
Subject: Reading "leftover" chunks from files
Date: 1999/08/20
Date: 1999-08-20T00:00:00+00:00	[thread overview]
Message-ID: <37BCD2F1.E0AECF04@Think.So> (raw)

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.

EG
If the file I'm reading is:

[ABC|DEF|GHI|JK] (where | represents a chunk border, not an actual byte)

I want to be able to read:
JK, then
GHI, then
DEF, then
ABC

I'd say Direct_IO comes into it, and the full-sized chunks (eg ABC) are
easy to get, but how do I pick up the JK without scanning through the
whole file?

MB
Email: ua.ten.qu@olokom (backwards)
-- 
How am I supposed to hallucinate with all of these coloured lights
distracting me?




             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 Matthew [this message]
1999-08-20  0:00 ` Reading "leftover" chunks from files Matthew
1999-08-20  0:00 ` Jean-Pierre Rosen
1999-08-20  0:00 ` Robert Dewar
1999-08-20  0:00   ` tmoran
replies disabled

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