![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c语言知识点
A~s
这个作者很懒,什么都没留下…
展开
-
c语言open方式文件打开和创建,linux系统
open函数打开需要的头文件:#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>open使用原型:int open( const char * pathname, int flags);int open( const char * pathname,int flags, mode...原创 2019-03-01 11:50:54 · 16617 阅读 · 0 评论 -
c语言文件打开和调用
实例:#include &lt;stdio.h&gt; int main(){ FILE *fpWrite=fopen("hello.txt","w"); if(fpWrite==NULL) { return 0; } for(int i=0;i&lt;10;i++) fprintf(fpWrite,"%d ",i); fc原创 2019-03-04 19:23:34 · 689 阅读 · 0 评论