fileHandleForUpdatingAtPath:
指定したパスを読み書きできるファイルハンドルを作って初期化して返します
+(id)fileHandleForUpdatingAtPath:(NSString *)path:
解説
指定したファイル、デバイス、名前付きのソケットのパスを使って、読み書きできるファイルハンドルを作って初期化して返します。
ファイルポインタは、ファイルの最初にセットされます。
返されるオブジェクトは NSFileHandleのread...メッセージと writeData:メッセージに応答します。
引数
( NSString * )path
ファイルパス
フレームワーク
Foundation
クラス
NSFileHandle
Class Methods
使用可能
10.0
参照
+ fileHandleWithNullDevice
- initWithFileDescriptor:
例文
handle3 = [NSFileHandle fileHandleForUpdatingAtPath:[str1 stringByExpandingTildeInPath]];