company logo

File :: lastPosition - Last file position

The last file position is the position set when accessing the file the last time. Setting file position allows reading or writing data from/to a specific file position. Setting file position after end of file will increase the file size. Data filled in the undefined area after current end of file is undefined.

Return value:  Position in an area or file ( int64  )

The big position value usually refers to a relative position in an area or file.

Implementation overview

Implementation details

  1. Get last file position accessed
    int64 File  :: lastPosition (  )

    The function may be called for binary processing mode. When a different processing mode has been selected, the function throws an exception.

  2. to list
  3. Set last file position
    int64 File  :: lastPosition ( int64 iPosition64 )

    The function allows changing the last file position to iPosition64 . When the new position passed in is larger than file size, the area from last position to iPosition64 may contain undefined data.

    • iPosition64 - Position in an area or file

      The big position value usually refers to a relative position in an area or file.

  4. to list