.Flush Method

Top  Previous  Next


Saves back to the flash memory ("flushes") the changes made to the most recently edited file.


fd.close() as pl_fd_status_codes


One of the following pl_fd_status_codes, also affects the status of fd.laststatus:

0- PL_FD_STATUS_OK: Completed successfully.

1- PL_FD_STATUS_FAIL: Physical flash memory failure (fatal).

See Also:

Writing To and Reading From Files (see "File Data Caching"!), Closing Files,




The fd.flush method does not depend on the current fd.filenum value and works globally on any most recently changed file.

Executing fd.close also does the job of fd.flush.

It is not necessary to use fd.flush if your disk operations are performed within a disk transaction.