You are currently viewing the documentation for:
ECF_SeekFile changes the position of the file cursor within a file.
ECF_ErrorCode ECF_SeekFile(
   struct ECF_FileHandle *pFileHandle,
   uint32_t position
A pointer to an open file handle.
The absolute position within the file to move the file cursor to.
Return value
Returns one of the EcFAT error codes (ECFERR_SUCCESS on success)
This function only moves the cursor to an absolute position within the file. If you want to move it relative to the current position or relative to the end of the file, you need to call ECF_GetFileSize() and ECF_GetFilePosition() to calculate where to move.
See also