grazie 100 x avermi kiarito il dubbio ma se voglio ke il file *.txt vado sul desktop la form,a così è sbagliata :
var
f:textfile;
nome : string;
begin

randomize;
nome := IntToStr(random(3)+1);


assignfile(f, 'c:\'+ nome + '.txt');
rewrite(f);
CloseFile(f);

end;

end.

quindi x risolvere come potrei fare=??
invece x scrivere dentro il file??

grazie...ciao