|
fclosefunction
<cstdio> int fclose ( FILE * stream ); Close file Closes the file associated with the stream and disassociates it.All internal buffers associated with the stream are flushed: the content of any unwritten buffer is written and the content of any unread buffer is discarded. Even if the call fails, the stream passed as parameter will no longer be associated with the file. Parameters
Return ValueIf the stream is successfully closed, a zero value is returned.On failure, EOF is returned. Example
See also
|