closes the files
fclose(f1_ptr);
fclose(f2_ptr);
fclose(f3_ptr);