code: def read(*paths):
      
      basedir = os.path.dirname(__file__)
      fullpath = os.path.join(basedir, *paths)
      contents = io.open(fullpath, encoding='utf-8').read().strip()
      return contents
docs: Read a text file.