Introduction: Persistence ∞

The topic of this module is persistence, but not of the human variety. In computer science persistence refers to the persistence of our data from one run of a program to the next. Normally all data (variables) are destroyed when a program terminates so the next run starts from scratch, but often times we want to remember the state of our program from one run to the next, or we may want to process data that is already stored on the computer, e.g. in files on disk. We do that by reading and writing data from files. You know where to go to read more!

  1. Persistence
  2. Text versus Binary Files
  3. Reading from text files
  4. Example: Searching log files
  5. Important note: Files are sequential
  6. Is there more?
  7. Writing to text files
  8. Appending to files
  9. Reading numeric data
  10. Designing file formats
  11. Pickling
  12. Shelves
  13. A controller for our database
  14. The main event loop
  15. Exercise 7
  16. Assignment 8