gannon
|
for FileSeekPos(int file, int pos, int mode) // 0=SEEK_SET 1=SEEK_CUR 2=SEEK_END
I assume seek_set is a offset from the begining of the file
seek_cur is a offset from the current posion and seek_end is a offset from the end
is this correct?
for my question which is faster? (or are they both the same)
FileSeekPos(file, n, SEEK_SET)
or
FileSeekPos(file, 0-1, SEEK_CUR)
if they are the same is the time constant or dependent on n (assuming they are both seeking to the same place)
Posted on 2004-06-07 07:14:09
|