Hi, I have managed to get a unique / temp filename under Windows and Linux using IFDEF's. Does FPC or Lazarus have a crossplatfrom function that does this without the need for IFDEF's? Regards, - Graeme -