I'm having a brain cramp as I haven't programmed in C in over a year and am having issues. How would I read into an array?
I.E. I have this:
for (i=0; i<ROWS; i++){
for (j=0;j<COLS;j++){
fscanf(file, "16%d", &array[ ][i][j]);
}
}
What I'd like is for the 16 integer elements on that line to become elements 1-16 for the first dimension of the array, so how would I do that?
I can't believe I can't remember this..