Instance Method


Causes all in-memory data and attributes of the file represented by the receiver to be written to permanent storage.


- (void)synchronizeFile;


This method should be invoked by programs that require the file to always be in a known state. An invocation of this method does not return until memory is flushed.

See Also

Operating on a File

- closeFile

Disallows further access to the represented file or communications channel and signals end of file on communications channels that permit writing.

- truncateFileAtOffset:

Truncates or extends the file represented by the receiver to a specified offset within the file and puts the file pointer at that position.