Namespaces
Variants
Views
Actions

fread

From cppreference.com
< c‎ | io
Revision as of 22:44, 2 November 2012 by P12bot (Talk | contribs)

 
 
File input/output


Functions
File access
Direct input/output
fread
Unformatted input/output
(C95)(C95)
(C95)
(C95)(C95)
(C95)
(C95)
Formatted input
Formatted output
File positioning
Error handling
Operations on files
 
Defined in header <stdio.h>
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:c/io/dcl list fscanfTemplate:c/io/dcl list fgetsTemplate:c/io/dcl list fwrite