Skip to content

Text files · ⁨文本文件⁩

English

Why files?

  • Variables vanish when a program ends. A file keeps data on disk.
  • Files let you save results and read them back later.
  • They also hold more data than you would type by hand.
中文

为什么需要文件?

  • 程序结束时变量就消失了。文件(file)把数据保存在磁盘上。
  • 文件让你保存结果,以后再读回来。
  • 文件也能存放比你手动输入多得多的数据。

Handout

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

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