throw exceptions in case of file reading problems