03 2015 档案
c语言文件操作——复制文件
摘要://用于拷贝文件#include #include#include int main(){ FILE *fp_from=NULL; //定义文件指针 FILE *fp_to=NULL; int len; //获取文件长度 char *ch=NULL; //缓存buffer if ... 阅读全文
posted @ 2015-03-08 09:36 weekman 阅读(4859) 评论(0) 推荐(0)
c语言文件操作
摘要:#include #include #include int main(){ int len; char *ch=NULL; FILE *pfile=fopen("a.txt","r+"); //不用新建a.txt,下一个语句自动新建 fwrite("hello,world",1,strlen("h... 阅读全文
posted @ 2015-03-07 22:26 weekman 阅读(112) 评论(0) 推荐(0)