| Lesson Plan | |
| Grade: | Date: 17/01/2026 |
| Subject: Computer Science | |
| Lesson Topic: Open, read, write and close files | |
Learning Objective/s:
|
|
Materials Needed:
|
Introduction: Imagine a game that needs to remember high scores after it’s closed. Students already understand variables and loops, so they can see how persistent storage extends program functionality. By the end of the lesson they will be able to open, read, write, and close files correctly and explain why each step matters. |
Lesson Structure:
|
|
|
Conclusion: We recap the four operations, the purpose of each file mode, and the necessity of closing files to flush data. Students submit their exit tickets and receive a homework task to create a small program that records a user’s name and score to a file. This reinforces the full file‑handling cycle. |
|
Your generous donation helps us continue providing free Cambridge IGCSE & A-Level resources, past papers, syllabus notes, revision questions, and high-quality online tutoring to students across Kenya.