import csv


def load_original_file(filename, delimiter, skipline):
    """
    File loader
    :param filename: str: path
    :param delimiter: str: delimiter used, passed to csv.reader
    :param skipline: bool: does the frst line contains column names (true) or data (then false)
    :return: data, firstline
    """
    firstline = None
    data = []
    with open(filename, 'r') as data_fid:
        reader = csv.reader(data_fid, delimiter=delimiter, quotechar='"')
        if skipline:
            firstline = next(reader)
        for row in reader:
            data.append(row)
    return data, firstline