Get the length of the file, set the file pointer to the end of the file (length) - the size of the buffer, then move the file pointer backwards from there in a loop...
i.e.
1) file pointer position = length of file - sizeof(buffer)
2) read data into buffer
3) set file pointer position = file pointer position - sizeof(buffer)
4) loop steps 2 and 3 until file position is 0/BOF Rob Marriott
rob@career-connections.net