SD - position()

Get the current position within the file (i.e. the location to which the next byte will be read from or written to).

Syntax

file.position()
file.position(file)

Parameters

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

Returns

The position within the file (unsigned long).

See also