fileHandleForWritingAtPath:
指定したパスで書き込みできるファイルハンドルを作って初期化して返します
+(id)fileHandleForWritingAtPath:(NSString *)path:
解説
指定したファイル、デバイス、名前付きのソケットのパスを使って、書き込みできるファイルハンドルを作って初期化して返します。
NSFileHandleのwriteData:メソッドにしか反応しません。
引数
( NSString * )path
ファイルパス
フレームワーク
Foundation
クラス
NSFileHandle
Class Methods
使用可能
10.0
参照
+ fileHandleWithNullDevice
- initWithFileDescriptor:
例文
handle2 = [NSFileHandle fileHandleForWritingAtPath:[str1 stringByExpandingTildeInPath]];