in src/co_op_translator/utils/common/file_utils.py [0:0]
def write_output_file(output_file: str | Path, results: list) -> None:
"""
Write a list of results to the output file, each on a new line.
Args:
output_file (str | Path): The path to the output file.
results (list): A list of strings to write to the file.
"""
output_file = Path(output_file)
with output_file.open("w", encoding="utf-8") as text_file:
for result in results:
text_file.write(result)
text_file.write("\n")