#include <stdio.h>
int main(void){
FILE *fp;
int a, b, c;
fp = fopen("test.txt", "r");
if (fp == NULL){
printf("Can't open file!\n");
return -1;
}
printf("Open file succeed!\n");
printf("Read format file start.\n");
fscanf(fp, "%d, %d, %d.\n", &a, &b, &c);
printf("Read format file end.\n");
printf("%d, %d, %d.\n", a, b, c);
fclose(fp);
return 0;
}