You must be logged in to do that.

FileEOF

FileEOF
int FileEOF(int file)

Documentation

Determines whether or not the current file has reached its end-of-file (EOF) marker. Useful in loops where the amount of bytes or lines in a file is undetermined, and also good for detecting that end-of-file is unexpectedly early in a given file.

Example Usage

// Read until end of file, or until the max players
// allowed has been met, whichever comes first.
while (!FileEOF(f) && i < MAX_PLAYER_COUNT)
{
	player[i].hp = FileReadQuad(f);
	i++;
}
Talkback

There are no talkbacks on this documentation page yet. Post the first?

Post a new comment?

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.