read and test each file entry and print it

while(fscanf(fr_ptr,"%d",&dummy) != EOF)

printf("\n %d\n",dummy);