#include <stdio.h>

main()
{
int i,count=0;
FILE *fp;
char s[50];

fp=fopen("test","r");

while (fscanf(fp,"%d",&i) != EOF)
{
printf("The read number is:%d \n",i);
count++;
}

printf("Value of EOF is %d\n",EOF);

fclose(fp);


}
