std::fclose

From Cppreference

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

int fclose( FILE *stream );

Closes the given file stream.

Contents

[edit] Parameters

stream - the file stream to close

[edit] Return value

0 on success, EOF otherwise

[edit] Example

[edit] See also

fopen
opens a file
(function)
freopen
open an existing stream with a different name
(function)