【高分】C语言文件读写

[复制链接]
查看11 | 回复2 | 2009-6-25 21:13:52 | 显示全部楼层 |阅读模式
//AlphaBlend 的答案 有点危险!!!//楼主的要求是 写回原来的文件里//而AlphaBlend的程序 却给原来文件 给清了!好危险#include #include void main(){ char filename[64] = "D:\\1.txt"; FILE *pFile = fopen(filename,"r"); FILE *outFile; char *buf; int len; int i; if(!pFile) {printf("Open File Error!\n");system("pause");...
回复

使用道具 举报

千问 | 2009-6-25 21:13:52 | 显示全部楼层
读取文件,将大写字母全部变成小写, 存盘 #include#includeint main(void){ FILE *in; FILE *out; char srcfile[256]; char destfile[256]; char ch; printf("pl...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行