I want to know how can I save a matrix of integers to a binary file and read them back.
The matrix could be something like
double mat[][] = {{1, 0, 0, 0}, {1, 0, 1, 1}, {0, 1, 1, 0}};
I am able to save this in binary form but I am not sure how I am supposed to read them again and be able to tell each row apart (the matrix could have more than 4 columns I just randomly chose this one).
By the way would the resulting file be 16 bits in the case of the matrix above?