Fread
A binary-safe file read function in C/C++/PHP that returns the specified number of bytes from a stream
Fseek
Fseek is a C function belonging to the ANSI C standard library, and included in stdio.h
Others
Example |
---|
So i guess fseek should be much faster than fread from question Using fseek and fread I probably feel fseek might be bit faster than fread as fseek changes the pointer position to the new address space that you have mentioned and there is no date read is happening from question Using fseek and fread |
Fseek does not read from the file it just moves the file pointer around for your next read;you need to use fread to read from the file from question C Program - How to validate a specific string in a file |