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 sends data from a program into a file for storage.
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.
In Python, write() does not automatically add a new line. Include "\n" when each item should occupy its own line.
Use the syntax of the language requested. Python uses write(), not writeline().
Create a free account to read GCSE Computer Science revision notes for your exam board and track your progress.