OCR GCSE Computer Science · J277
Paper 2
Revise: Basic File Handling OperationsThe basic sequence is to open a file, read from it or write to it, then close it. A program does not have to both read and write every time it opens a file.
Loading…
GCSE Computer Science · key term
An operation that finishes access to a file, completes any pending writes and releases the resources used to access it.
Used by OCR
Paper 2
Revise: Basic File Handling OperationsThe basic sequence is to open a file, read from it or write to it, then close it. A program does not have to both read and write every time it opens a file.
Close the file after the reading or writing is finished, not inside a loop that still needs the file.
Create a free account to read GCSE Computer Science revision notes for your exam board and track your progress.