Skip to content

Text files · ⁨文本文件⁩

English

A file keeps data after the program stops

  • The 2026–2028 syllabus (section 8.3) stores data in a text file.
  • You open the file, read or write one item, then close it.
  • This course keeps the file in memory for the one run, so you can see the result.
中文

文件在程序结束后仍保存数据

  • 2026–2028 考纲(第 8.3 节)把数据存在文本文件里。
  • 你先打开文件,读或写一项,然后关闭它。
  • 本课程把文件保存在这一次运行的内存里,这样你能看到结果。

Handout

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

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