read()
描述
从档案读取资料。
read()
是从 Stream
继承而来。
语法
file.read()
参数
file
:被 SD.open()
回传的 File
物件
回传
byte
:回传档案未读资料中最前面的字元,如果没有未读资料可以读回传 -1
See Also
- available()
- peek()
- write()
- Stream.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.