#include struct punkt{ int x; int y; }; int main(void){ struct punkt p1; FILE *f; f=fopen("punktid.dat", "rb"); fread(&p1, sizeof(struct punkt), 1, f); printf("%d %d\n", p1.x, p1.y); fread(&p1, sizeof(struct punkt), 1, f); printf("%d %d\n", p1.x, p1.y); fclose(f); return 0; }