write()

描述

写入资料至档案。

语法


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

参数

file:被 SD.open() 回传的 File 物件
data:要写入的资料,型态可以为 bytecharchar*
buf:存放写入资料的字元阵列
len:buf 的大小

回传

byte:回传 write() 写入至档案的位元组数量

See Also

print()
println()
read()


函式库参考主页面

The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.