linux系统编程之文件IO(一)

文件IO是从打开文件开始的 在linux中,一切皆文件,想对文件内容进行操作,除了有操作权限外,更重要的一点是要打开文件。(以下只有干货) 1)系统调用: #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> int open (const char *name, int flags); int open (const ch
相关文章
相关标签/搜索