I have tried for about a day and a half. Tried several methods to put my file's integers into array. Can you help please? The output I get now is the same number repeated over and over.
if ((nfPtr=fopen("c:\\Users\\raphaeljones\\Desktop\\newfile.dat","r"))==NULL)
{
    printf("File could not be opened\n");
}
else {
    printf("The integers you have entered are: \n");
    fscanf(nfPtr,"%d\n",&i);
    while(!feof(nfPtr)){
        for (count=0;count<=SIZE;count++){  
            fscanf(nfPtr,"%d",&array[i]);
            i++;
            printf("%d\n",i);
        }
    }
}//end else
fclose(nfPtr);
getch();    
return 0;
 
     
     
    