|
C Now |
FILE Stream feof Function |
![]() |
The feof function is used to test whether the file pointer is at the end of the file.
#include <stdio.h>
. . .
FILE * Account_Master;
char Buffer [100];
int Maximum;
int Actual;
. . .
Maximum = 100;
. . .
Account_Master = fopen ("accounts.dat", "r");
. . .
Actual = fread (Buffer, 1, Maximum, Account_Master);
while (!feof (Account_Master)) {
. . .
Actual = fread (Buffer, 1, Maximum, Account_Master);
}
|
||||||
|
|
|
||||||||||
|
copyright 2001-2006, j.h.young, revised 2/13/06 |