File:flush
Flushes any buffered written data in the file to the disk.
success, err = File:flush()
success boolean Whether the file successfully flushed any buffered data to the disk.
err string The error string, if an error occurred and the file could not be flushed.