GetFPos
You can use theGetFPosfunction to determine the current position of the mark before reading from or writing to an open file.
FUNCTION GetFPos (refNum: Integer; VAR filePos: LongInt): OSErr;
refNum- The file reference number of an open file.
filePos- On output, the current position of the mark.
DESCRIPTION
TheGetFPosfunction returns, in thefilePosparameter, the current position of the file mark for the specified open file. The position value is zero-based; that is, the value offilePosis 0 if the file mark is positioned at the beginning of the file.RESULT CODES
noErr 0 No error ioErr -36 I/O error fnOpnErr -38 File not open rfNumErr -51 Bad reference number gfpErr -52 Error during GetFPos
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help