write ratio sequence to file