basic_filebuf::sync
Tries to synchronize the controlled streams with any associated external streams.
virtual int sync( );
반환 값
Returns zero if the file pointer fp is a null pointer. Otherwise, it returns zero only if calls to both overflow and fflush(fp) succeed in flushing any pending output to the stream.
요구 사항
Header: <fstream>
네임스페이스: std