C语言 文件读取

FILE *fp = fopen("data.txt","rt");
fscanf(fp,"%d", &n );

/* 把数据放到数组中 */

fclose(fp);
原文地址:https://www.cnblogs.com/MiLu/p/3660633.html