WEEK 2 · THURSDAY
Week 2 · Day 4 — File I/O and Error Handling
2 hours·11 sections
Section 1 of 110/11 done
Week 2 · Day 4 — File I/O and Error Handling
"Stats disappear when the program ends — unless you save them."
Recap: The Problem
Your team roster from yesterday vanishes the moment you close the program. All that data — player names, stats, ratings — gone.
Today you'll learn to save data to files and load it back. Your programs will remember things between runs. You'll also learn to handle errors gracefully so your code doesn't crash when something goes wrong.