본문 바로가기

텍스트 파일

English

Data that stays after the program ends

  • A variable is lost when the program stops. A text file keeps its lines, so the next run can read them.
  • AS topic 10.3 asks for pseudocode that writes, appends and reads a text file of one or more lines.
  • Every file job has the same three parts: open it in one mode, use it, close it.

Open a file FOR WRITE or FOR READ, use WRITEFILE or READFILE line by line, then CLOSEFILE

교재 자료

로그인 또는 계정 만들기

IGCSE, A-Level & AP