Arduino File.position()

Description

The File.position() function gets the current position of the pointer on the file. This is the location to which the next byte will be read from or written to.

Syntax

file.position()

Parameters

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

Returns

  • The position within the file (unsigned long)

ARDUINO BUY RECOMMENDATION

Arduino UNO R3
Arduino Starter Kit
Disclosure: Some links in this section are Amazon affiliate links. If you make a purchase through these links, we may earn a commission at no extra cost to you.
Additionally, some links direct to products from our own brand, DIYables.

※ OUR MESSAGES