Перейти к содержанию

Текстовые файлы

English

Data that stays after the program ends

  • A variable is lost when the program stops. A text file keeps its lines, so the next run can read them.
  • AS topic 10.3 asks for pseudocode that writes, appends and reads a text file of one or more lines.
  • Every file job has the same three parts: open it in one mode, use it, close it.

Open a file FOR WRITE or FOR READ, use WRITEFILE or READFILE line by line, then CLOSEFILE

Раздаточный материал

Войти или создать аккаунт

IGCSE, A-Level & AP