Help, I'm trying to save all the data in my file as a list.
register = []
def some_command():
register.append([variable,'variable_x'])
def save():
outFile = open('Save.txt', 'wb')
pickle.dump(register, outFile)
outFile.close()
It saves the file succesfully. But when I use "some_command" to add a new element to "register" it doesn't update; It doesn't even give an error. What could be the problem?