Reputation: 71
I need to ask the user for an ID Number, and then use the function fseek()
to find the position of the ID Number entered by the user, and then be able to modify the records. I have something like this:
printf("Enter ID Card Number: \n");
scanf("%s", editCust.idNumber);
fseek(custFile, (editCust.idNumber -1)*sizeof(struct customer), SEEK_SET);
Upvotes: 1
Views: 1114