Basically I would like to save a list to python and then when the program starts I would like to retrieve the data from the file and put it back into the list.
So far this is the code I am using
mylist = pickle.load("save.txt")
...
saveToList = (name, data)
mylist.append(saveList)
import pickle
pickle.dump(mylist, "save.txt")
But it just returns the following error: TypeError: file must have 'read' and 'readline' attributes