9. Files and exceptions#

In this chapter we are going to see how we can make data persistent by saving them in files, how we can modify these files later on, and how to deal with errors.

Chapter Summary

  • Files:

    • why are files useful

    • writing data to files

    • reading data from a file

  • Exceptions:

    • what are exceptions

    • exception handling

    • finally clause