Skip to content

Text files · ⁨文本文件⁩

English

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.
中文

先打开,再读或写

  • AS 主题 10.3 要求用伪代码处理由一行或多行组成的文本文件。
  • 以一种模式打开文件:READ、WRITE 或 APPEND。
  • WRITE 新建文件,原有内容丢失。APPEND 加在原有内容之后。
  • 用完后 CLOSEFILE。一个文件一次只能以一种模式打开。

Handout

Log in or create account · ⁨登录或创建账户⁩

IGCSE, A-Level · ⁨IGCSE、A-Level⁩ & AP · ⁨与 AP⁩