>if ( fileOffset +1 > length of the buffer ) > read a buffer starting a file offset 0, size = fileOffset +1 rounded to a multiple of 4 k ( or 16 k) > >return buffer[fileOffset ] ==value >>You will need to clear the buffer each time you open a new file
>if( IsByteEqual(0, 0x45) andalso IsByteEqual(1, 0x64) ) > filetype = something >else if if( IsByteEqual(0, 0c80) andalso IsByteEqual(24, 0x88) ) > filetype = somethingelse >..... >else > filetype = undefined >Thanks, I will see about seeking only at the proper locations.