(Formerly known as FileIsEOF, which is now obsolete)
readonly bool File.EOF
Checks whether the specified file has had all its data read. This is only useful
with files opened for reading. It returns 1 if the entire contents of the file
has now been read, or 0 if not.
Example:
File *output = File.Open("test.dat", eFileRead);
while (!output.EOF) {
int temp = output.ReadRawChar();
Display("%c", temp);
}
output.Close();
will display every character in the file test.dat, one by one, to the screen.
See Also: File.Error, File.Open,
File.ReadStringBack
|