available()
描述
檢查檔案是否還有可讀取的資料。
available() 是從 Stream 繼承而來。
語法
file.available()
參數
file:被 SD.open() 回傳的 File 物件
回傳
int:可讀資料的位元組數量
See Also
- read()
- peek()
- Stream.available()
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.
