win32file.FlushFileBuffers

FlushFileBuffers(hFile)

Clears the buffers for the specified file and causes all buffered data to be written to the file.

Parameters

hFile : PyHANDLE

open handle to file whose buffers are to be flushed