preciso excluir somente um dado do arquivo mas não sei como alguém pode me ajudar segue o codigo
// =================================================================
// ======Excluir dados no arquivo ==================================
void exclusao(void){
int total = 0, retorno;
char op = 's';
if ((fp = fopen("agenda.db", "a")) == NULL)
{
printf ("O arquivo da lista não pode ser aberto!\n");
printf ("Exclua dados!\n");
getch();
exit(1);
}
while ((total < 100) && (op == 's'))
{
printf ("Digite o nome da musica: ");
gets(Tab[total].nome);
retorno = fwrite (&Tab[total], sizeof(struct Agenda) ,1,fp);
if (retorno == 1) {
printf(" \nExclusao ok ! ");
}
total++;
op = Validaresp();
qtd++;
}
fclose (fp);
}