(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

© 2006–2020 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/(File):flush