Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Files /
Chapter 2 - File Manager / File Manager Reference
High-Level File Access Routines / Manipulating the End-of-File


GetEOF

You can use the GetEOF function to determine the current logical end-of-file of an
open file.

FUNCTION GetEOF (refNum: Integer; VAR logEOF: LongInt): OSErr;
refNum
The file reference number of an open file.
logEOF
On output, the logical end-of-file.
DESCRIPTION
The GetEOF function returns, in the logEOF parameter, the logical end-of-file of the specified file.

RESULT CODES
noErr0No error
ioErr-36I/O error
fnOpnErr-38File not open
rfNumErr-51Bad reference number
afpAccessDenied-5000User does not have the correct access to the file

Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996