(File):flush

Available since LÖVE 0.9.0
This function is not supported in earlier versions.

Flushes any buffered written data in the file to the disk.

Function

Synopsis

success, err = File:flush( )

Arguments

None.

Returns

boolean success
Whether the file successfully flushed any buffered data to the disk.
string err (nil)
The error string, if an error occurred and the file could not be flushed.

See Also

Other Languages