Input file error handling