Skip to content

Text files · ⁨文本文件⁩

English

Files keep data

  • Variables vanish when a program ends; a file stores data so it lasts.
  • The exam covers reading from and writing to text files.
  • Work in three steps: open, read or write, then close.
中文

文件保存数据

  • 程序结束时变量就消失了;文件(file)把数据存下来,使它长期保留。
  • 考试涉及对文本文件的读取和写入。
  • 分三步进行:打开、读或写、再关闭。

Handout

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

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