import csv


def read_csv_report(datafile_path, delimiter):
    """Parses data from csv file to list and returns it

    :param datafile_path: path to report file
    :param delimiter: delimiter used in the report file
    :return: list with data from csv or None when unable to parse data
    """
    with open(datafile_path, "r", newline='') as report_file:
        if delimiter == None:
            delimiter = ";"
        print("using ", delimiter, " as delimiter")
        return list(csv.reader(report_file, delimiter=delimiter, quotechar='|'))
    return None