#include <stdio.h> int main(void) { int a; FILE *t; if((t=fopen("aa.txt","r"))==NULL) { printf("オープン失敗\n"); return 1; } while(fscanf(t,"%d",&a)!=EOF) printf("%d\n",a); fclose(t); return 0; }