"Brian Perkins" <[EMAIL PROTECTED]> asked:
> I was just wondering if there is a (simple) way to to determine the
> physical order of the files on the CD? I'm looking for a
> cross-platform C/C++ function.
>
> Does an unsorted dir/ls list do this? Is that going to be reliable on
> multiple platforms? (I'm primarily interested in Mac, PC, Linux/other
> Unices...)
>
> I'm writing an app that reads many files on a particular CD containing
> over 600MB. But, the order I read them doesn't really matter. So, to
> speed up the app, I want to read the files in their physical order on
> the CD to minimize the total seek time.
You can get the order of the files within the directory structure, but
that's not the same thing as order of the data. Unless you pull the
entire directory info into memory, you do one seek between the file and
the directory anyway, so savings are likely to be small.
> Any help would be appreciated.
So would 80 column lines! ;-)
--
-bill davidsen ([EMAIL PROTECTED])
"The secret to procrastination is to put things off until the
last possible moment - but no longer" -me
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]