Originally Posted by
Salem
All I can suggest is add debug prints (or use a debugger) and step through the code.
There isn't anything obviously wrong with what you've posted so far.
do you have any suggestions for debuggers? and would using fgets to get all the header info effect my fscanf i use to declare the array?
Code:
//declare variables for image file intake
int** imageArray;
char InFileType [10];
char InFileDescription [100];
char rowRead;
char inDimensions [10];
char maxValueIn [10];
char fileDescription [100];
unsigned int row, col, i, j, maxValue;
//reading in the information
fgets(InFileType, 10, fpI);
fgets(InFileDescription, 100, fpI);
fgets(inDimensions, 10, fpI);
row = atoi(strtok(inDimensions, " "));
col = atoi(strtok(NULL, " "));
fgets(maxValueIn, 10, fpI);
maxValue = atoi(maxValueIn);