#include "stdio.h"
void main()
{
FILE* fp;
int n[100];
int t=0;
if((fp=fopen("test.txt","r"))==NULL)
{
printf("失敗\n");
}
while(!feof(fp))
{
fscanf(fp,"%d",&n++);
}
fclose(fp);
}
int i = 0;
while(!feof(fp))
fscanf(fp,"%d",&n[i++]);