#include int main(void){ int nr; FILE *f; f=fopen("andmed.dat", "rb"); if(!f){ printf("Probleem faili avamisega.\n"); return 1; } fread(&nr, sizeof(int), 1, f); printf("%d\n", nr); fclose(f); }