Store a dictionary in a file for later retrieval
I've had a search around but can't find anything regarding this... I'm looking for a way to save a dictionary to file and then later be able to load it back into a variable at a later date by reading the file. The contents of the file don't have to be "human readable" it can be as messy as it wants. Thanks - Hyflex EDIT import cPickle as pickle BDICT = {} ## Automatically generated START name = "BOB" name_title = name.title() count = 5 BDICT[name_title] = count name = "TOM" name_title = name.title() count = 5 BDICT[name_title] = count name = "TIMMY JOE" name_title = name.title() count = 5