commit

commit();

The commit method of the File class physically commits to the file any outstanding updates that have been cached in memory for performance reasons. The commit flushes any pending "dirty" buffers and updates the file size maintained by the file system.

The following example shows the use of the commit method.

btnCommit_click(btn: Button input) updating;
begin
    if file <> null then
        file.commit;
    endif;
    showFileStatus;
end;