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
Please note: These are Amazon affiliate links. If you buy the components through these links, We will get a commission at no extra cost to you. We appreciate it.

※ OUR MESSAGES