Skip to content

Text files

Open, then read or write

  • AS topic 10.3 asks for pseudocode that handles a text file of one or more lines.
  • Open the file in one mode: READ, WRITE or APPEND.
  • WRITE starts a new file and loses what was there. APPEND adds after what is there.
  • CLOSEFILE when you have finished. A file is open in only one mode at a time.

Handout

Log in or create account

IGCSE, A-Level & AP