Skip to content · ⁨Bỏ qua nội dung⁩

Text files · ⁨Tệp văn bản⁩

English

Open, then read or write

  • AS topic 10.3 asks for pseudocode that handles a text file of one or more lines.
  • Open the file in one mode: READ, WRITE or APPEND.
  • WRITE starts a new file and loses what was there. APPEND adds after what is there.
  • CLOSEFILE when you have finished. A file is open in only one mode at a time.
Tiếng Việt

Mở, sau đó đọc hoặc viết

  • Chủ đề AS 10.3 yêu cầu pseudocode xử lý một tệp văn bản có một hoặc nhiều dòng.
  • Mở tệp trong một chế độ: READ, WRITE hoặc APPEND.
  • WRITE tạo一个新文件并丢失原有内容。 APPEND追加到现有内容之后。
  • CLOSEFILE khi bạn hoàn thành. Một tệp chỉ được mở ở một chế độ duy nhất tại một thời điểm.

Handout · ⁨Tài liệu⁩

Log in or create account · ⁨Đăng nhập hoặc tạo tài khoản⁩

IGCSE, A-Level & AP