Sometimes you are saving a temporary file so you don’t want to delete or overwrite anything that already exists in a directory…there is a nice function to find the next unique file name.

fileNameTemp = Global::fileNameNext(fileOriginalsPath + fileName);