Instance Method インスタンスメソッド

contentsAtPath:

Returns the contents of the file at the specified path. 指定されたパスでのファイルの内容を返します。

Declaration 宣言

- (NSData *)contentsAtPath:(NSString *)path;

Parameters パラメータ

path

The path of the file whose contents you want. それの内容をあなたが望むファイルのパス。

Return Value 戻り値

An NSData object with the contents of the file. If path specifies a directory, or if some other error occurs, this method returns nil. ファイルの内容を持つNSDataオブジェクト。pathがディレクトリを指定するならば、または何か他のエラーが発生するならば、このメソッドはnilを返します。

See Also 参照

Getting and Comparing File Contents ファイル内容の取得と比較

Related Documentation 関連文書