per asportare un testo da un programma ad un file di testo come faccio?