I have a file in which I have dumped a huge number of lists.Now I want to load this file into memory and use the data inside it.I tried to load my file using the \"load\" method
How about this:
lists = [] infile = open('yourfilename.pickle', 'r') while 1: try: lists.append(pickle.load(infile)) except (EOFError, UnpicklingError): break infile.close()