Next Topic

Previous Topic

Book Contents

SeekFromEnd

int SeekFromEnd(int iNumberofBytes)

Return values

Non zero if the function is successful; otherwise 0, and a specific error code can be retrieved by calling global function GetLastError.

Parameters

  • iNumberofBytes - Number of bytes to reposition the file pointer by, counted from the end of the file.

Remarks

The function will move the current position of the file pointer to iNumberofBytes from the end of the file. Note that the iNumberofBytes must be negative in order to move the file pointer "upwards" in the file.