#include <stdio.h>
typedef struct Point {
int x, y;
} Point;
int main(void) {
Point p;
FILE* in = fopen("data.bin", "rb");
if (in == NULL) {
return 1;
}
size_t total_read = fread(&p, sizeof(Point), 1, in);
fclose(in);
if (total_read == 0) {
return 2;
}
printf("%d, %d\n", p.x, p.y);
return 0;
}
/*
run:
89731, 26
*/