Unit 8 · Programming
8.3 File handling
By the end of this section you should be able to
- 8.3.1 Explain why data is stored in files
- 8.3.2 Open, read, write and close files
Lessons
Key vocabulary
- File
- A store of data kept on secondary storage so it is not lost when the program ends.
- OPENFILE
- Opens a file in a stated mode before it is used.
- READ mode
- Opens a file so data can be read from it.
- WRITE mode
- Creates a new file to write to, losing any existing data.
- CLOSEFILE
- Closes a file when it is no longer needed.