Programming Reference Manual
 
Syntax
 
FFlush handle%
 
Description
Empties the I/O buffer for the file, opened with FOpen under handle%, by writing the buffer fysically to the disk.
 
Parameter
Description
handle%
A handle to the file, previously opened with the FOpen instruction.
See Also
Example
 
Sub Main
Dim hnd%, File$, x%
File$ = “C:\TESTFILE.TMP”
FCreate File$
Hnd% = FOpen(“C:\TESTFILE.TMP”, 1, 4)
'Write-only, shared
For x% = 1 To 1000
FPut Hnd%, “Hello!”
If x% Mod 100 = 0 Then
FFlush Hnd%'write all pending i/o to disk
End If
Wend
FClose Hnd%
End Sub