import csv


def write_to_csv(file, rows: list):
    """
    Write a row to given CSV file.

    :param file: string. CSV file to write in.
    :param rows: list. List of rows. Row is a list of values to write in the csv file as a row.
    :return: boolean. True for successful write.
    """
    print('Writing to csv...')
    with open(file, 'a', newline='') as f:
        writer = csv.writer(f)
        for row in rows:
            writer.writerow(row)
    return True