comp.lang.ada
 help / color / mirror / Atom feed
* Reading "leftover" chunks from files
@ 1999-08-20  0:00 Matthew
  1999-08-20  0:00 ` Matthew
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Matthew @ 1999-08-20  0:00 UTC (permalink / 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?




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1999-08-20  0:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-08-20  0:00 Reading "leftover" chunks from files Matthew
1999-08-20  0:00 ` Matthew
1999-08-20  0:00 ` Jean-Pierre Rosen
1999-08-20  0:00 ` Robert Dewar
1999-08-20  0:00   ` tmoran

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