file_flush()

Flushes the content of the file associated with the given handle, ensuring all data is written to disk.

Syntax

file_flush({file_handle})

Parameters

Parameter Type Description Comment
file_handle Number Handle of the open file to flush.

Return Value

Examples

Open a file, flush its content

hnd = file_open("log.txt");
file_flush(hnd); 

See also

file_delete

file_open
file_close

file_read

file_append
file_flush