new method 'readProperties': handles the checked exception that can be thrown when reading a file.