fread function — Reads binary data
size_t fread(void* ptr, size_t size, size_t count, FILE* stream)
The fread
function reads up
to count
elements from stream
into the memory that ptr
points to. The memory must have POD
type (see Chapter 6). Each
element is size
bytes long. It
returns the number of elements that were read successfully.