codice:#include <stdio.h> struct struttura { char nome[20]; char cognome[20]; } scheda; int main(){ FILE* pf; printf("INSERISCI NOME : "); scanf("%s", scheda.nome); printf("INSERISCI COGNOME: "); scanf("%s", scheda.cognome); pf = fopen("scheda.txt", "w"); fprintf(pf, "%s\n", scheda.nome); fprintf(pf, "%s\n", scheda.cognome); fclose (pf); printf ("RECORD INSERTITO CON SUCCESSO\n"); return 0; }