synchronizeFile()
Causes all in-memory data and attributes of the file represented by the handle to write to permanent storage.
Declaration
func synchronizeFile()Discussion
Programs that require the file to always be in a known state should call this method. An invocation of this method doesn’t return until memory is flushed.