Added routines to report file-read error

* Added routines to report file-read error:
  * file_read_error(): report read error, but don't quit
  * file_end_error(): report reaching end of file while reading, don't quit
  * file_end_quit(): report reaching end of file while reading, and quit