Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void WriteFile(struct ST_emp Workers[])
- {
- int i;
- FILE *elif;
- elif = fopen("test.txt", "w+");
- if (elif == NULL)
- {
- printf("Error opening test.txt\n");
- return;
- }
- for (int i=0; i<7; i++)
- {
- fwrite(&Workers[i], sizeof(Workers), 1, elif);
- }
- fclose(elif);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement