here's the code it just keeps printing num and lcv but im not sure why.
thanks in advance!Code:#include<stdio.h> #define FILETOOPEN "ints" int main() { FILE *flptr; int lcv; int num; flptr = fopen(FILETOOPEN,"r"); while(lcv != EOF) { lcv = fscanf(flptr,"%d",&num); printf("\n %d\n",num); printf("\n%d\n",lcv); } }