def read_solver_outputs(solver, folder):
    """read solver iteration outputs from file."""
    with open(folder / (solver + "_iter_outputs.txt"), "r", encoding="utf-8") as f:
        contents = f.readlines()
    return contents