« disable squid log v2.4 - v2.5 | Main | SecureCRT 5.0 Beta delivers a tabbed user interface »
April 20, 2005
c open write close
版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本声明。 https://windtear.net/archives/2005/04/20/000635.html http://windtear.net/archives/2005/04/20/000635.html 熬夜改写一段程序 虽是比较简单的c的文件读写操作 不过却解决了很大的问题 fd = open(buf, O_RDONLY); fd = open(buf, O_RDWR); write(fd,"\n",1); close(fd); #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <stdio.h> O_RDWR||O_CREAT |
Posted by windtear at April 20, 2005 6:30 PM