feof - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


feof

determine if the current position of a file is at the end

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

feof(file)

Parameters

file

-

file name or file descriptor

Description

• 

feof returns true if and only if the end of a STREAM file has been reached during a readline, readbytes, or fscanf operation. Otherwise, feof returns false.

• 

The end of file must actually have been encountered. For example, asking readbytes to read 20 bytes when only 19 remain in the file will result in a subsequent feof call returning true. On the other hand, reading the last line of a file with readline does not encounter the end of file; a subsequent call to readline will.

• 

if a file name is given, and that file is not yet open, it is opened in READ mode with type BINARY.

Examples

feoftestFile

false

(1)

fclosetestFile:

See Also

file_types

filepos

iostatus