Non l'ho testata, ci potrebbero essere errori però almeno spero ti renda l'idea.codice:void stampaPila(rec_pila *t,char *filename) { FILE *file; rec_pila *_temp = t; file = fopen(filename,"w"); while (_temp != NULL) { fprintf(file,"\n String : %s \n",_temp->stringa) _temp = _temp->punt; } fclose(file); }