def _read_oft(f, oft):
    """Read FOFT, COFT and GOFT blocks data."""
    history = {oft: []}
    while True:
        line = next(f).rstrip()
        if line:
            history[oft].append(line)
        else:
            break
    return history
