06 2016 档案

Linux的文件I/O
摘要:int open(const char *pathname, int flags, mode_t mode); #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> 参数1:要打开的文件 参数2:打开类型,O_RDONLY,O 阅读全文

posted @ 2016-06-29 21:47 DanielTYL 阅读(293) 评论(0) 推荐(0)

Linux---I/O标准文件的一些操作
摘要:(1)文件的概念 linux中文件分为: 普通文件 -、目录 d、字符设备 c、块设备 b、有名管道 p、套接口 s、符号链接 l ; 标准IO和文件IO这部分主要对普通文件操作; 普通文件分为二进制文件和ascii文件。 (2)标准I/O库 标准IO是一个标准库,在建立系统调用基础之上的,对用户提 阅读全文

posted @ 2016-06-28 22:25 DanielTYL 阅读(209) 评论(0) 推荐(0)

导航