#include<stdio.h>
#include<stdlib.h>
#include<conio.h>
struct KAYIT_TIPI {
char a[20];
int s,m,kn,kk;
} KAYIT;
int i;
FILE *dosya;
main()
{
if((dosya=fopen("calisanlar","w"))==NULL) exit(1);
KAYIT.kk=1;
for(i=1;i<=100;i++) {
fseek(dosya,(i-1)*sizeof(struct KAYIT_TIPI),0);
fwrite(&KAYIT,sizeof(struct KAYIT_TIPI),1,dosya);
}
fclose(dosya);
printf("dosya hazirlandi..");
}
Burada fseek
ve fwrite
ne yapıyor?