FLUSH statement

Purpose

Flush file buffers to disk, to ensure that the disk information is up-to-date.

Syntax

FLUSH [[#] filenum& [, [#] filenum&] ...]

Remarks

FLUSH ensures that all data you have written to disk files has actually been written to disk.  The CLOSE statement also flushes the buffers, but FLUSH has the advantage of leaving the files open.

filenum&

The file number of an OPEN file.  If filenum& is specified, only the data for that file is flushed.  Otherwise, data for all open files is flushed. The Number (#) symbol is optional, but recommended for the purposes of clarity.

See also

CLOSE, OPEN