Notes / Tag

#文件操作

1 public note use this tag.

Related

Related Categories

Concepts

Related Concepts

Concepts

  • C 文件操作1
  • fclose1
  • file I/O1
  • fopen1
  • fread1
  • fwrite1
  • 文件操作1
  • 文件输入输出1

Notes

Notes Tagged 文件操作

seedProgramming Languages

C 文件操作

本章导览 程序运行时数据存放在内存中,程序结束后数据就消失了。要想持久化保存数据,必须将数据写入文件。本章讲解 C 语言中文件操作的完整流程。 本章涵盖:文件基本知识 → 打开与关闭文件 → 顺序读写(字符、字符串、格式化、二进制) → 随机读写 → 出错检测 核心流程:定义文件指针 → fopen 打开 → 读写操作 → fclose 关闭 相关基础:c-io、c-pointers、c-custom-types

Jul 11, 2026 / learning-note