.flush Method
Function: |
Saves back to the flash memory ("flushes") the changes made to the most recently edited file. |
Syntax: |
fd.close() as pl_fd_status_codes |
Returns: |
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: |
Details
This 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.