yes I'm doing the same thing. It is the functionality of load_list() function to open the file. Here is code:
Code:
def load_list(filename):
myfile = file(filename,"r")
lst = []
for line in myfile:
lst.append(line.strip())
myfile.close()
return lst
def save_list(filename,lst):
myfile = file(filename,"w")
for item in lst:
print >> myfile, item
myfile.close()
consder an example,
suppose there is a data [u"Mobile",u"Python"] in mydata.txt
now,
Code:
list = load_list(u"c:\\mydata.txt")
if I'll write
then it is printing the list ['Mobile','Python']
If I assign this list to multi_selection_list then it is showing that "No Data"
Now, tell me how can I solve it?