Reference » Service classes » MFile » isEOF

Elgrint::MFile::isEOF() method

Declaration (see MFile.h):

bool isEOF() const;

Description

Returns true iff the current position is at the End-Of-File.

Return type: bool

Details

The file pointer is at the End-Of-File, if and only if getPos is equal to getSize, i.e. isEOF is equivalent to getSize() == getPos(). It is provided only for convenience.

If the file is closed (isOpen returns false), isEOF returns true, which is consistent with the above definition, because both getPos and getSize return 0 if the file is closed.

See MFile for a usage example.

Let us know

Please Contact us to report any errors on this page, or to suggest any improvements.

Miranor Home | About Miranor | About Elgrint | Create account | Login | Account settings | Contact Us | Privacy Policy | Site map

© Copyright 2014 by Miranor. All rights reserved. By using this site you agree to the Terms of Use.

Page last updated on August 10th, 2014.