标签:col eof cannot nbsp fopen 指针 open txt put
#include<stdio.h> int main(void){ FILE *fp;//定义指针 char ch; if((fp=fopen("d:\\yy.txt","r"))==NULL){// printf("cannot open file,press any key to exit!"); exit(0); } while((ch=fgetc(fp))!=EOF){ fputc(ch,stdout); } fclose(fp); }
标签:col eof cannot nbsp fopen 指针 open txt put
原文地址:https://www.cnblogs.com/sunnybowen/p/8964876.html