FILE *fopen(char *pname,char *mode);
FILE *fp=fopen("C://test.txt","r");
//选择打开方式打开文件,异常返回为NULL
int fclose(FILE *fp);
fclose(fp);
//正常返回0,异常返回EOF
int fgetc(FILE *fp);
ch=fgetc(fp);
while(ch!=EOF){
printf(ch);
ch=fgetc(fp);
}
int fputc(int ch,FILE *fp);
fputc(ch,fp);
char *fgets(char *str,int n,FILE *fp);
char buffer[1024];
while(fgets(str,1024,fp)!=NULL){
printf("%s",buffer);
}