Reference.FileRead History

Hide minor edits - Show changes to output

November 04, 2011, at 06:19 PM by Scott Fitzgerald -
Added lines 7-8:
read() inherits from the [[Reference/Stream]] utility class.
Changed lines 25-26 from:
* [[FileWrite | write()]]
to:
* [[FileWrite | write()]]
* [[/Reference/StreamRead | Stream.read()]]
November 21, 2010, at 07:18 PM by David A. Mellis -
November 21, 2010, at 07:18 PM by David A. Mellis -
Added lines 1-23:
[[SD]] : ''File'' class

!!read()

Read a byte from the file.

!!!!Syntax

''file''.read()

!!!!Parameters

''file'': an instance of the File class (returned by [[SDopen | SD.open()]])

!!!!Returns

The next byte (or character), or -1 if none is available.

!!!!See Also

* [[FileAvailable | available()]]
* [[FilePeek | peek()]]
* [[FileWrite | write()]]

Share