createExclusiveFile function

Create a unique filename.