std::fread

From Cppreference

< cpp | io | c
Jump to: navigation, search
Defined in header <cstdio>

size_t fread( const void *buffer, size_t size, size_t count, FILE *stream );

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 first object object in the array to be read
size - size of each object in bytes
count - the number of the objects to be read

[edit] Return value

number of objects read successfully

[edit] See also

scanf
fscanf
sscanf
reads formatted input from stdin, a file stream or a buffer
(function)
fgets
gets a character string from a file stream
(function)
fwrite
writes to a file
(function)