std::fwrite

From Cppreference

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

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

Writes count of objects in the given array buffer to the output stream stream. Objects are not interpreted in any way.

[edit] Parameters

buffer - pointer to the first object object in the array to be written
size - size of each object
count - the number of the objects to be written

[edit] Return value

number of objects written successfully

[edit] See also

printf
fprintf
sprintf
snprintf



(C++11)
prints formatted output to stdout, a file stream or a buffer
(function)
fputs
writes a character string to a file stream
(function)
fread
reads from a file
(function)