- Read data from file appropriately (20 marks)
The read_matrices
function handles file reading:
void read_matrices(const char *filename, Matrix **A, Matrix **B) {
FILE *file = fopen(filename, "r");
if (file == NULL) {
fprintf(stderr, "Error: Cannot open file %s\n", filename);