/*
* File: newmain.c
* Author: Administrator
*
* Created on 2009年3月1日, 下午7:39
*/
#include <stdio.h>
#include <stdlib.h>
/*
*
*/
main() {
char c='A',c2[4]="123";
printf("%c",c);
printf("%s",c2);
FILE *fl,*newfile;
fl=fopen("c:\\one.txt","r");
newfile=fopen("c:\\two.txt","w");
if(fl==NULL) printf("文件不存在!");
long l=ftell(fl);
printf("%d",l);
while((c=fgetc(fl))!=EOF){
fputc(c,newfile);
}
fclose(fl);
fclose(newfile);
}