Altered return types of functions which read files, so they may pass error codes to main().