What is the best way to parse a file that has this type of format into lists in python?
I would like to return two lists, label1 = ['c:\\temp1','c:\\temp2','c:\\temp3','c:\\temp4'] and label2 = ['c:\\label2_1','c:\\label2_2','c:\\label2_3']
Thanks!
Code:
Label1 = "c:\temp1;" +
"c:\temp2;" +
"c:\temp3;" +
"c:\temp4";
Label2 = "c:\label2_1;" +
"c:\label2_2;" +
"c:\label2_3";
I would like to return two lists, label1 = ['c:\\temp1','c:\\temp2','c:\\temp3','c:\\temp4'] and label2 = ['c:\\label2_1','c:\\label2_2','c:\\label2_3']
Thanks!