si nomefile contiene il nome della categoria

char nomefile[30];
char parola[30];
char parola_segreta[100];
int lung;

sono tutte variabili globali