Skip to content
Skip to page content
soylai.com

File Handling — Part 2: Binary Files and CSV Files

Beta
Lesson

Binary Files and CSV Files

Part 2 — storing Python objects with pickle, and tables in CSV files.

In this lesson you will

  • Store and read Python objects in binary files with pickle.dump() and pickle.load()
  • Read a binary file to the end by handling EOFError, and search and update its records
  • Write and read CSV files with csv.writer and csv.reader
Part 2 at a glance