read in the key from file and handle the exception if the file is not found