def ReadTxtName(rootdir):
    """
    read the configuration which describe the the dataset , which consists of filenames, labels
    """
    filenames=[]
    labels=[]
    with open(rootdir, 'r',encoding="utf-8") as file_to_read:
        while True:
            line = file_to_read.readline()
            if not line:
                break
            # strline = line.decode('gbk')
            part = line.strip().split(',')
            filename=part[0]
            label=part[1:-1]
            filenames.append(filename)
            labels.append(label)
        return filenames,labels