Closes the given file stream and writes any unwritten data from stream's buffer to the associated output device. Any unread buffered data are discarded.
Whether or not the operation succeeds, the stream is no longer associated with a file, and the buffer allocated by std::setbuf or std::setvbuf, if any, is also disassociated and deallocated if automatic allocation was used.
If any data are written to an output device, returning from std::fclose
establishes an observable checkpoint.
The behavior is undefined if the value of the pointer stream is used after std::fclose
returns.
â0â on success, EOF otherwise.
[edit] ExampleOutput:
End of file reached successfully[edit] See also opens a file
std::basic_filebuf<CharT,Traits>
) [edit]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4