|
Flush
|
|
|
The Flush method writes unsaved data to file and clears data buffer.
C++
long Flush(void);
BASIC
Flush() As Long
Parameters
Method has no parameters.
Return Values
If the method succeeds, the return value is 0.
If the method fails, the return value is failure code and error code is set.
Call GetError to get error code.
Remarks
Method is called automatically whenever internal buffer is full of written data, file is repositioned, resized, closed or detached.
Bit buffer is also written to file even if it does not contain complete byte (8 bits); in such case bit buffer is left padded with zero bits to fill entire byte.
If internal buffer only contains read data (no data was written) it is just cleared leaving file in its last position.
See Also
Close,
Detach,
Reading and Writing Data