I need to create a unique file name in /tmp
What is the xojo recommended method?
Sorry but does that create a file in the ‘temp’ directory or can it be used to create a directory in the ‘temp’ directory
Dim tempFileName As String = Format(rnd * 1000000, “#####0”) + “.txt”
As documented it creates a uniquely named folder item in the directory pointed at by SpecialFolder.Temporary which varies by platform
Yes but I need to create a folder not a file.
It doesn’t create a file. It creates a FolderItem, which can be used to create either a folder or a file. Your choice.