Understanding fprintf and fscanf
Understanding error handling in streams.