code: def read_file(filename):
      
      p = path.abspath(path.dirname(__file__))
      filepath = path.join(p, filename)
      try:
          return open(filepath).read()
      except IOError:
          return ''
docs: Read a file into a string