October 26: File I/O
Learning Objectives
After today's class, you should be able to:
- Know how to open, read and write to a file
- Understand the role of buffering when writing to a file
- Understand file paths
Lesson Outline¶
Quiz 4A: 25 minutes
- Log in as
student
on the lab machine - Open web browser, go to canvas and log in with your eid
- In canvas, go to Modules, Quiz4A
- Do part one of the Module
- The programming portion is given on sheet of paper
- Open Thonny
- Submit work using Canvas with Gradesope, Module Quiz4A, Programming
Chapter 9 supplement materials
- File I/O
- The file system
- What is a path?
- pathlib module
- Example code
Mini Lecture: Chapter Introduction and activities
Your To-Do List¶
By today
-
Start Programming Assignment 1B: PA 1.
Complete by Monday October 30th
- Complete the Chapter 9 "orange" textbook activities. You must do this through CANVAS to receive credit.
Due Wednesday November 1st at 11pm