Friday, April 24, 2015

Pickling and Shelving Data

The following program stores data to a .dat file rather than a .txt file. To store more complex information, such as lists, .dat files are used. The shelf module allows you to randomly access data. It basically takes pickled data one step further by making a dictionary out of the lists which can be randomly accessed.



No comments:

Post a Comment