Exception handling for empty or no file.