if ( (f_did = fopen(name_f_did,"r")) == NULL) return -1; /*ERROR*/
fseek(f_did, 0, SEEK_END);
if ( (f_did = fopen(name_f_did,"r")) == NULL) return -1; /*ERROR*/
fseek(f_did, 0, SEEK_END);
if ( (f_did = fopen(name_f_did,"a+")) == NULL) return -1;
fwrite(&ID, sizeof(int), 1, f_did);
if ( (f_did = fopen(name_f_did,"a+")) == NULL) return -1;
fwrite(&ID, sizeof(int), 1, f_did);