[fpc-pascal] GetTempFileName in Linux

Leonardo M. Ramé martinrame at yahoo.com
Tue Oct 5 17:20:27 CEST 2010


Hi, if I run this program from command line in Linux, I allways get the same result, "/tmp/TMP00000.tmp". Shouldn't it return a different file name each time it's executed?. 

How can I get different file names?

program tempfilename;
uses
  sysutils;
begin
  writeln(GetTempFileName);
end.


Leonardo M. Ramé
http://leonardorame.blogspot.com


      



More information about the fpc-pascal mailing list