file.write()

[SD]

説明

Write data to the file.

構文

file.write(data)
file.write(buf, len)

媒介変数

  • file: an instance of the File class (returned by SD.open())
  • data: the byte, char, or string (char *) to write
  • buf: an array of characters or bytes
  • len: the number of elements in buf

戻り値

byte: write() will return the number of bytes written, though reading that number is optional

See Also


ライブラリリファレンスホーム

86Duinoリファレンスのテキストは、Arduinoリファレンスを改変したもので、Creative Commons Attribution-ShareAlike 3.0ライセンスに基づいてライセンスされています。リファレンス内のコードサンプルはパブリックドメインとして公開されています。

上部へスクロール