Type Method 型メソッド

outputStreamToFileAtPath:append:

Creates and returns an initialized output stream for writing to a specified file. 指定されたファイルへと書き込むためにある初期化された出力ストリームを作成して返します。

Declaration 宣言

+ (instancetype)outputStreamToFileAtPath:(NSString *)path 
                                  append:(BOOL)shouldAppend;

Parameters パラメータ

path

The path to the file the output stream will write to. 出力ストリームが書き込むファイルへのパス。

shouldAppend

YES if newly written data should be appended to any existing file contents, otherwise NO. YES、もし新しく書き込まれたデータがなんらかの既存のファイル内容に追加されるべきならば、そうでなければNO

Return Value 戻り値

An initialized output stream that can write to path. ある初期化された出力ストリーム、それはpathへと書き込み可能なものです。

Discussion 議論

The stream must be opened before it can be used. ストリームは、それが使われる前に開かれなければなりません。

See Also 参照

Creating Streams ストリームを作成する