def text_files_equal(
        file_path_1: str,
        file_path_2: str,
) -> bool:
    """
    Utility function to compare text files.

    :param file_path_1:
    :param file_path_2:
    :return: True if equal, False if not
    """

    with open(file_path_1, "r") as file_1, \
            open(file_path_2, "r") as file_2:
        for line_1, line_2 in zip(file_1.readline(), file_2.readline()):
            if line_1 != line_2:
                return False

    return True