I am trying to read an unknown number of integer test scores from a file into an array. None of the input is > 100, but i keep getting garbage like -32451 and such. Almost like reading the wrong data type or something.
int count = 1;
FILE *fin;
fin = fopen ( "lab06.dat", "r" );
while ( fscanf ( fin, "%d", numbers[count] ) != EOF )
count ++;
return ( count );
thanks.