Syntax
boolean seek(
    uint32_t pos
);
ContentsIndex
PreviousUpNext
LFile::seek Method
LFile Class
Syntax
boolean seek(
    uint32_t pos
);
Description

Changes the cursor position; it can be from 0 to the size of file. 

  • Use read() to retrieve the content on the current position and move the cursor at the same time.
  • Use peek() to retrieve content on the current position without moving the cursor.
  • Use position() to get the current cursor position.
 

Parameters
Parameters 
Description 
uint32_t pos 
[IN] The new cursor position. 
Returns

true: Successful. 

false: Failed. The cursor position is not changed.

File

LStorage.h

Class