File::writeChar() (Previous) (Next) File_Find

View this page in Last updated: Sun, 07 Sep 2008
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

File::writeLine()

File::writeLine() -- ファイルに 1 行書き込む

説明

ファイルに 1 行書き込み、デフォルトで改行を追加します。

パラメータ

  • $filename - 書き込むファイルの名前。

  • $line - ファイルに書き込む行データ。

  • $mode - 書き込みモード。 FILE_MODE_WRITE あるいは FILE_MODE_APPEND のいずれか。デフォルトは追記。

  • $crlf - システムで使用しているキャリッジリターン / ラインフィード。デフォルトは LF (\n) ですが任意のものを指定できます。Unix では \n、 Windows では \r\n、そして Mac OS では \r を使用します。

  • $lock - ファイルをロックするかどうか。

返り値

エラーが発生した場合は PEAR_Error を返します。すべてがうまくいった場合は書き込んだバイト数 (crlf も含む) を返します。

File::writeChar() (Previous) (Next) File_Find

Download Documentation Last updated: Sun, 07 Sep 2008
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.