On Dec 17, 2005, at 2:00 PM, Nathan Pinno wrote:
So to read a file in binary mode, what you want to do is: Using your own code as an example, see how you implemented the save feature (option 9). That open() correctly uses the 'wb' flag to write the file in binary mode. elif menu_option == 9: store = open("exch.txt", 'wb') #save pickle.dump(exch, store) store.close() break -dan -- Black holes are where God divided by zero. -Steven Wright |
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor