linux编程——I/O操做之文件基本读写

open/close函数 int open(const char *pathname, int flags); int open(const char *pathname, int flags, mode_t mode); int close(int fd);web 经常使用参数 O_RDONLY(只读)、O_WRONLY(只写)、O_RDWR(读写) O_CREAT(若文件存在标志无用,若不存在
相关文章
相关标签/搜索