open函数与close函数

1.open()函数 头文件: #include <fcntl.h>//在centos6.0中只要此头文件就可以 #include <sys/types.h> #incldue <sys/stat.h> 功能:打开和创建文件(建立一个文件描述符,其他的函数可以通过文 件描述符对指定文件进行读取与写入的操作。) 原型 int open(const char*pathname,int flags);
相关文章
相关标签/搜索