I am trying store a number files in a choosen folder, and use the createTempFile to create a unquie filename for each stored.
I would like to start with the filename tmp, then tmp1, tmp2 ect. To achieve this would I need to loop this createTempFile until it finds a unique filename? And could any example what the prefix and suffix values are?
I wondered what value the createTempFile returned?
File file = new File(path + fileName);