Well that, how can I modify data from a record, I was trying this way:
gets(search); // nombre del dato que queremos modificar
fread(&producto,sizeof(_Registro),1,pf);
while(!feof(pf)){
if (strcmp(search,producto.nombre)==0){ //aqui obtenemos el dato en el fichero en la posición en la que se encuentra.
printf("Nombre del Producto %s\n",producto.nombre); //lo imprimimos
printf("Nuevo Nombre del Producto: ");
gets(producto.nombre); //pido el nuevo nombre
fflush(stdin);
fwrite(&producto,sizeof(_Registro),1,pf); // y sobre escribo el fichero
}
but do not overwrite it: /, I have looked for how to do it in another way but I have not achieved success, thank you in advance and greetings.