fread() is a block oriented function. T
he ANSI prototype is:
size_t fread(void *ptr,
size_t size,
size_t nmemb,
FILE *stream);
The function reads from the stream pointed to by stream and places the output into the array pointed to by ptr. It will stop reading when any of the following conditions are true:
* It has read nmemb elements of size size, or
* It reaches the end of file, or
* A read error occurs.