Linux文件打开及创建

1 #include <sys/types.h> 2 #include <sys/stat.h> 3 #include <fcntl.h> 4 #include <stdio.h> 5 int main() 6 { 7 int fd; 8 fd = open("./file1",O_RDONLY); 9 if(fd == -1){ 10 printf(“open file1 failed\n”);
相关文章
相关标签/搜索