stringWithContentsOfURL:encoding:error:
指定したファイルの内容から指定したエンコーディングで文字列を返します
+(id)stringWithContentsOfURL:(NSURL *)url encoding:(NSStringEncoding)enc error:(NSError **)error
解説
指定したファイルの内容から指定したエンコーディングで文字列を返します。
10.4以降はstringWithContentsOfFile:を使わず、このメソッドを使います。
返り値
( id )
オブジェクト()
フレームワーク
Foundation
クラス
NSString
Class Methods
使用可能
10.4
参照
+stringWithContentsOfURL:usedEncoding:error:
-initWithContentsOfURL:encoding:error: