C
文章平均质量分 69
yang763876248
这个作者很懒,什么都没留下…
展开
-
c文件操作<2>
#include #include int main(){ FILE* fp = fopen("b.txt","w"); if(fp == NULL)perror(""),exit(-1); FILE* fp2 = fopen("b.txt","r"); char buf[6] = "hello"; fwrite(buf,str原创 2012-09-14 00:49:18 · 553 阅读 · 0 评论 -
c文件操作<3>
#include #include #include int main(){ FILE* fp = fopen("b.txt","w"); if(fp == NULL)perror(""),exit(-1); FILE* fp2 = fopen("b.txt","r"); char buf[6] = "hello"; int fd原创 2012-09-14 01:16:38 · 484 阅读 · 0 评论 -
c文件操作<1>
#include #include int main(){ FILE* fp = fopen("a.txt","w"); FILE*fp1 = fopen("b.txt","a+"); FILE*fp2 = fopen("b.txt","r"); if(fp1==NULL) perror(""),exit(-1); /*原创 2012-09-14 00:15:02 · 517 阅读 · 0 评论