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) 은 디스크에 데이터를 저장하므로, 프로그램이 멈춘 후에도 여전히 존재합니다.
  • 파일은 FILE *를 통해 작업합니다 — 이는 fopen으로부터 얻은 포인터입니다.
  • 이 작업에서는 파일을 쓰고, 같은 프로그램 내에서 다시 읽어 모든 것을 자체적으로完성합니다.

Handout · ⁨교재 자료⁩

Log in or create account · ⁨로그인 또는 계정 만들기⁩

IGCSE, A-Level & AP