Arduino File.seek()

Description

The File.seek() function seeks to a new position in the file, which must be between 0 and the size of the file (inclusive).

The File.seek() function inherits from the Stream utility class.

Syntax

file.seek(pos)

Parameters

  • file: an instance of the File class that is returned by SD.open()
  • pos: the position to which to seek (unsigned long)

Returns

  • True for success, false for failure (boolean)

Example Code

//TO BE UPDATED

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