IO进程线程第一天(7.25)文件IO函数fopen,perror,fclose,fprintf,fscanf,fputc,fgetc
1.用fgetc和fputc实现文件的拷贝和计算字节,行数(拷贝的是用fprintf和fscanf实现拷贝的代码)#include#include#includeintmain(intargc,constchar*argv[]){FILE*p=fopen("fscanf.txt","r");if(NULL==p){perror("fopen1");return-1;}FILE*q=fopen("f