[soapbox]
Any time you do business with a system resource (file, network link, etc.) you should check the status and display an INFORMATIVE error message if the operation fails.
Bad: File open error.
Good: Date/time program_name - file open error: /path/filename.ext (system error code) (error explanation text i.e. perror())
[/soapbox]