throw an exception if the input file does not exists