Instance Method
インスタンスメソッド
synchronizeAndReturnError:
Causes all in-memory data and attributes of the file represented by the file handle to write to permanent storage.
Declaration
宣言
- (BOOL)synchronizeAndReturnError:(out NSError
* _Nullable *)error;
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.
See Also
参照
Operating on a File
ファイルに関する操作
- closeAndReturnError:
Disallows further access to the represented file or communications channel and signals end of file on communications channels that permit writing.
表現されたファイルまたは通信経路へのもっと先のアクセスを禁止します、そして書き込み許可する通信経路上のファイルの終端を合図します。
- truncateAtOffset:error:
Truncates or extends the file represented by the file handle to a specified offset within the file and puts the file pointer at that position.