Programming · 4 question types
Past paper frequency (2018 to 2024)
This topic accounts for approximately 3% of your exam marks.
OPENFILE, READFILE, WRITEFILE, CLOSEFILE pseudocode operations appear occasionally.
A running program holds all its data in RAM, which is volatile: the moment the program ends or the computer is turned off, every variable disappears (topic 9). For data to survive across program runs, it must be saved to secondary storage as a file.
Files are how programs:
The CIE IGCSE syllabus focuses on text files: simple human-readable files made of lines of text.
Working with a file always follows the same four-step pattern:
Skipping the close step is one of the most common bugs in file-handling code. The next section explains why.