Week 10 ยท 45-60 min

File Input/Output Basics

Week Summary

A quick preview of the main ideas in this week before you begin the slides.

  • Why Work with Files?
  • Opening a File
  • Reading from a File
  • Writing to a File

Glossary

Review these key terms before starting this week. They are kept simple so students can learn the new vocabulary before moving into the slides.

Why Work with Files?
Why Work with Files?
Opening a File
Opening a File
Reading from a File
Reading from a File
Slide 1๐Ÿ’ก

Why Work with Files?

Learning goal

Read from and write to simple text files.

Read one card at a time. Focus on the main idea first, then look at the visual on the right to help it stick.

Files let programs save data permanently.

Without files, data disappears when the program ends.

Files are useful for logs, notes, and simple data storage.

Text files are simple and widely supported.

This is a foundation for more advanced data handling later.

Remember

Files let programs remember information after they close.

Why Work with Files?

Why Work with Files?

Slide 1 of 8

Use arrows or dots to move through the lesson

Practice

  1. Write 2-3 sentences about what you learned this week.

Coming Next Week: Next: Debugging and Error Handling