Ok, it's working now but now I'm having trouble further down the line.
In subsequent code, I do several checks like
and depending on those conditions, i decide which row and column
to write the value to, or abort whatsoever(like when the value is out of range 1-9)
But none of these seem to be working.
For example: when num=='\n', my code should increment the row number and set column number to 0 so that the next value is written at the beginning of next row, but it's
not happening. The row always remains 0 and column is being incrimented all the way to 80.
And if I put a letter into the table(in the txt file) and feed it to my program,
that letter is being reported as 0.
Does this have something to do with how fscanf treats ' ', '\0' and '\n'?