I want to write a function that reads the contents of a file, and raises an error if it fails. I want to call this function from a python script, so I\'m including some mentions