For the life of me I cant see why this doesnt work! Im trying to read in a 4 by 4 array of integers from a txt file. Any suggestions as to why its not working?
printf("Please enter the name of the file you wish to use:\n");
if((pFileHandle = fopen(filename, "r")) == NULL)
printf("Unable to open file : %s\n", filename);
//scan the contents of the input file to the array
for(i=0; i<4; i++)
for(j=0; j<4; j++)
fscanf(pFileHandle, "%i\t", array[i][j]);