1- check the status of your call: what happens if fopen() fails?
2- %f is expected to be associated with a double, and you provided [fill in the blanks]