标签:
#include <stdio.h> main() { FILE *fp; if((fp=fopen("in.txt","rt"))==NULL) { printf("错误:文件不存在"); getch(); exit(1); } while(fscanf(fp,"%d",&a) != EOF ) { ...... } ......
C 语言的读取文件
原文地址:http://www.cnblogs.com/bruce27/p/4556792.html