(input_file_open): Remove call to stat(). Add a check for getc() failing, and