#include<stdio.h>

int main(int argc,char *argv[])
{
FILE *src_fp,*des_fp;
int src_ret;
char buf[]={}; if(argc != )
{
printf("please input paramester\n");
return -;
} //打开源文件
src_fp = fopen(argv[],"r");
if(src_fp == NULL)
{
printf("open the file %s is failure\n",argv[]);
return -;
}
printf("open the file %s is success\n",argv[]); //打开目的文件
des_fp = fopen(argv[],"w");
if(des_fp == NULL)
{
printf("open the file %s is failure\n",argv[]);
return -;
}
printf("open the File %s is success\n",argv[]); //将源文件拷到目的文件中
while()
{
src_ret = fread(buf,,,src_fp);
if(src_ret == )
{
printf("the file is end\n");
break;
}
fwrite(buf,,src_ret,des_fp);
} //关闭文件流
fclose(src_fp);
fclose(des_fp);
return ;
}

最新文章

  1. 自定义框架(MyMvc)
  2. HDU 5860 Death Sequence(死亡序列)
  3. 2. Transcribing DNA into RNA
  4. Gridview 分多页时导出excel的解决方案
  5. Packet for query is too large(1767212 &gt; 1048576)mysql在存储图片时提示图片过大
  6. C语言实现泛型编程
  7. Effective C++ -----条款45:运用成员函数模板接受所有兼容类型
  8. sql-mode=&quot;STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION&quot;问题解决
  9. css3 画x图形
  10. mk文件剖析
  11. 找出数组前N大的数
  12. struct--------构造函数对结构体初始化的影响
  13. 设置outlook自动回复
  14. Android 游戏开发 View框架
  15. android 学习之RecyclerView
  16. [HNOI2004]树的计数
  17. 【BZOJ3233】【tyvj1729】文艺平衡树
  18. springmvc 开发流程图
  19. Confluence 6 用户目录图例 - 连接 Jira 和 Jira 连接 LDAP
  20. 32位系统和x86的关系?

热门文章

  1. 转 常见hash算法的原理
  2. Java根据百度API获得经纬度,然后根据经纬度在获得城市信息
  3. NoSQL之Memcached
  4. POJ-2240 -Arbitrage(Bellman)
  5. vs2010下配置CUDA出现kernel launch failed问题,内核无效
  6. [数据集]新浪微博数据集MicroblogPCU
  7. OpenTK的glutBitmapCharacter的替代方法
  8. WPF的WebBrowser屏蔽弹出脚本错误窗体
  9. 百度面试经历_web前端开发
  10. JS之RegExp对象(二)