| Lesson Plan | |
| Grade: | Date: 17/01/2026 |
| Subject: Computer Science | |
| Lesson Topic: Open, close and use a file for reading and writing | |
Learning Objective/s:
|
|
Materials Needed:
|
Introduction: Begin with a quick discussion: why can’t all data be stored in variables alone? Recall how programs lose data when they stop running. Explain that today’s lesson will focus on using files to store and retrieve information, and students will be able to demonstrate correct file handling by the end. |
Lesson Structure:
|
|
|
Conclusion: Summarise the three‑step file workflow (open → read/write → close) and revisit the key file modes. Students complete a brief exit ticket writing the correct mode for a given scenario. Assign homework to create a small program that logs user activity to a file. |
|
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.