fread

From cppreference.com
< c‎ | io

Defined in header <stdio.h>
size_t fread( void          *buffer, size_t size, size_t count,
              FILE          *stream );
(until C99)
size_t fread( void *restrict buffer, size_t size, size_t count,
              FILE *restrict stream );
(since C99)

Reads specified number of objects in the array buffer from the given input stream stream. Objects are not interpreted in any way.

[edit] Parameters

buffer - pointer to the array where the read objects are stored
size - size of each object in bytes
count - the number of the objects to be read
stream - the stream to read

[edit] Return value

The number of objects read successfully.

[edit] See also

reads formatted input from stdin, a file stream or a buffer
(function)
gets a character string from a file stream
(function)
writes to a file
(function)
C++ documentation for fread