Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FILE *p;
- for (i=0; i<m+n; i++)
- {
- fread(&x,sizeof(x),1,f);
- p=fopen(x.firma.localitate,"a");
- if (p==NULL)
- {
- printf("err");
- exit (1);
- }
- fwrite(&x.nume,sizeof(x.nume),1,p);
- fwrite(&x.firma.nrang,sizeof(x.firma.nrang),1,p);
- fclose(p);
- }
Add Comment
Please, Sign In to add comment