Skip to content · ⁨コンテンツへスキップ⁩

Text files: write then read · ⁨テキストファイル:書き込み然后读取⁩

English

Files keep data after the program ends

  • A file stores data on disk, so it is still there after your program stops.
  • You work with a file through a FILE * — a pointer you get from fopen.
  • In these tasks you write a file, then read it back in the same program, so everything is self-contained.
日本語

ファイルはプログラム終了後もデータを保持する

  • ファイルはディスク上にデータを保存するため、プログラムが停止してもデータが残ります。
  • ファイルは FILE * を通じて操作します。これは fopen から得られるポインタです。
  • これらのタスクでは、ファイルに書き込み、同じプログラム内で読み戻すため、すべてを自身で完結させます。

Handout · ⁨プリント⁩

Log in or create account · ⁨ログインまたはアカウント作成⁩

IGCSE, A-Level & AP