Namespaces
Variants
Views
Actions

std::fread

From cppreference.com
< cpp‎ | io‎ | c
Revision as of 12:49, 15 June 2012 by P12bot (Talk | contribs)

 
 
 
C-style I/O
Types and objects
Functions
File access
Direct input/output
fread
Unformatted input/output
Formatted input
(C++11)(C++11)(C++11)    
(C++11)(C++11)(C++11)    
 
Defined in header <cstdio>
size_t fread( 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.

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

Return value

Number of objects read successfully

See also

Template:cpp/io/c/dcl list fscanfTemplate:cpp/io/c/dcl list fgetsTemplate:cpp/io/c/dcl list fwrite
C documentation for fread