write()
描述
寫入資料至檔案。
語法
file.write(data)
file.write(buf, len)
參數
file:被 SD.open() 回傳的 File 物件
data:要寫入的資料,型態可以為 byte、char 或 char*
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.
