• CS 111.02 - Spring 2024

  • Schedule
  • Assignments
  • Project
  • About

Lesson 14: File I/O

24 April, 2024

Outline:

  1. Goal: draw earthquakes from a file
    • map image
    • original code
    • new dataset
    • problem decomposition
  2. Reading from a file
    • multi-line strings
    • opening and closing files
    • .csv files
  3. Trying it out
    • drawing earthquakes

Explore after class:

  1. Another example: Exercise 1

Reading assignment (to be completed by the next class):

  • Zelle section 5.9.1-5.9.3 (pp. 158-164)