[此贴子已经被作者于2017-3-3 21:57编辑过]
#include<stdio.h> int main() { FILE *fp; fp=fopen("d:\\11.txt","r"); if(fp==NULL) { printf("文件打开失败"); return 0;; } else { while(!feof(fp)) { fputc(fgetc(fp),stdout); } } return 0; }