// ========================================================
// Some sample code you might like to use for
// parsing the IFS transformation files
// ========================================================

// open the file
FILE *input = fopen(input_file,"r");
assert(input != NULL);

// read the number of transforms
int num_transforms; 
fscanf(input,"%d",&num_transforms);
    
// *** DO SOMETHING WITH num_transforms ***

// read in the transforms
for (int i = 0; i < num_transforms; i++) {
  float probability; 
  fscanf (input,"%f",&probability);
  Matrix m; 
  m.Read(input);
  // *** DO SOMETHING WITH probability and m ***
}

// close the file
fclose(input);

// ========================================================
// ========================================================

