#include <stdio.h> main () { FILE *fp; int a, b; if((fp = fopen("test.dat", "r")) == NULL) return; while(fscanf(fp, "%d %d\n", &a, &b) != EOF){ printf("%d, %d\n", a, b); } fclose(fp); } test.datの内容 1 23 3 44 3 5O