Reference.FilePeek History

Hide minor edits - Show changes to markup

November 04, 2011, at 06:13 PM by Scott Fitzgerald -
Added lines 7-8:

peek() inherits from the Stream utility class.

Changed lines 25-26 from:
to:
November 21, 2010, at 07:24 PM by David A. Mellis -
Added lines 1-23:

SD : File class

peek()

Read a byte from the file without advancing to the next one. That is, successive calls to peek() will return the same value, as will the next call to read().

Syntax

file.peek()

Parameters

file: an instance of the File class (returned by SD.open())

Returns

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

See Also

Share