[REBOL] Re: skip on direct mode file port
From: anton:lexicon at: 12-Aug-2002 16:36
I want to read the last 128 bytes of
mpeg audio files.
I have fixed up and am fixing up mp3tool.r
from the script library, which reads id3v1 tags.
Currently, it is reading the whole
file into memory, which is wasteful.
Is there a way to get the file pointer
to the end without reading the whole file?
I have a half-solution:
Do a buffered read, with the buffer
set to 128 bytes, such that the last
buffer contents falls over the last
128 bytes. Or could use a larger buffer
until the last 128 bytes.
Mmm. I don't like it. It's just for fun,
so I can wait, too.