def read_file(path): txt = open(path, "r") file = txt.read() txt.close() return file