A part of my code is to read a file containing certain values into a 2D array for further processing. There can be any mumber of rows(more than 300) and any number of columns (less than 360). One of the problems im facing is to get the exact number of rows and columns in the file to dynamically allocate memory for the array. Further to effectiveluy use fscanf or fgets to scan the file into the array.
Ive been tryina couple of things so now im just confused. Any help would be much appreciated.