Added cFile::Flush().
This is useful when using cFile as a log file and we know the server may crash after a specific write, so we flush the file before continuing.
This commit is contained in:
@@ -450,3 +450,12 @@ int cFile::Printf(const char * a_Fmt, ...)
|
||||
|
||||
|
||||
|
||||
|
||||
void cFile::Flush(void)
|
||||
{
|
||||
fflush(m_File);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user