Skip to content · ⁨ข้ามไปยังเนื้อหา⁩

Text files: write then read · ⁨Text files: เขียนแล้วอ่าน⁩

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 เก็บข้อมูลบน disk, ดังนั้นมันยังคงอยู่หลังจากโปรแกรมของคุณหยุดทำงาน
  • คุณทำงานกับ file ผ่าน FILE * — pointer ที่คุณได้รับจาก fopen
  • ในงานเหล่านี้คุณ เขียน file, แล้ว อ่าน กลับมาในโปรแกรมเดียวกัน, ดังนั้นทุกอย่างจึง self-contained

Handout · ⁨เอกสารประกอบการเรียน⁩

Log in or create account · ⁨เข้าสู่ระบบหรือสร้างบัญชี⁩

IGCSE, A-Level & AP