def load(self):
        """ Load the content of the original file into a string and
            return it. All I/O exceptions are passed through.
        """
        file = open(self.filename, "rt")
        try:
            content = file.read()
        finally:
            file.close()

        return content
 Load the content of the original file into a string and
            return it. All I/O exceptions are passed through.
        
recipes/Python/56037_Safely_morph_a_file_inplace/recipe-56037.py