code: def open_file(self, access_mode="r"):
          
          try:
              with open(self, access_mode, encoding='utf-8') as file:
                  return file.read()
  
          except IOError:
              print(self + " File not found.")
              sys.exit(0)
docs: input:  filename and path.
              output: file contents.