Skip to main content
Open topic with navigation CAPL Functions » ISO11783 » ISO11783 Node Layer » Iso11783FSSeekFile

Iso11783FSSeekFile

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

long Iso11783FSSeekFile( dword fileHandle, dword mode, dword offset );

Description

This function moves the current write/read position of an open file or the read position of directory entries within a directory.

Parameters

  • fileHandle: File or directory handle, see also Iso11783FSOpenFile
  • mode:
    • 0: from the beginning of the file / from the first directory entry
    • 1: from the current pointer position
    • 2: from the end of the file / from the last directory entry
  • offset: Number of bytes to move the file pointer or the number of directory entries to move the directory pointer

Return Values

0 or error code

Example

Iso11783FSSeekFile( handle, 0, 10 );