open函數與close函數

1.open()函數 頭文件: #include <fcntl.h>//在centos6.0中只要此頭文件就可以 #include <sys/types.h> #incldue <sys/stat.h> 功能:打開和創建文件(建立一個文件描述符,其他的函數可以通過文 件描述符對指定文件進行讀取與寫入的操作。) 原型 int open(const char*pathname,int flags);
相關文章
相關標籤/搜索