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