Hi I have a list of False and True, which I have written to a file. When I read the file, I cant get back to my True and False list.... I only get the ["True","False"] version of it, but I want it to be like this: [True,False]
Is it possible to convert it? I have tried bool, it doesnt work..
This is my Read method.
readfromfile = open(tname,"r") readfromtemp = open(tfname,"r") read1 = readfromfile.read() read2 = readfromtemp.read() self._list = [int(n) for n in read1.split(',')] self._cord = [n for n in read2.split(',')] readfromfile.close() readfromtemp.close()
Edited by ekkanh: n/a