> For the complete documentation index, see [llms.txt](https://xiaoxiami.gitbook.io/linux-server/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xiaoxiami.gitbook.io/linux-server/wen-jian-cao-zuo/cyu-yan-de-biao-zhun-ku.md).

# 基于流的I/O操作

流I/O是由Ｃ语言的标准函数库提供的，因此也称为标准I/O。标准I/O库及其头文件“stdio.h” 提供了一个全面的面向底层的I/O系统调用的操作界面，使我们能够设置输出数据的格式和扫描处理输入数据，他还负责协调设备的数据缓冲。我们最书序的`printf()`和`scanf()`都是属于基于流的I/O函数。
