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 1 - Introduction to File Management / File Management Reference
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
SEE ALSO
For a description of the logical and physical end-of-file, see the section "File Access Characteristics" on page 1-8.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996