Reading numbers from a text file into an array in C

change to

fscanf(myFile, "%1d", &numberArray[i]);

Leave a Comment