Forum Post: Re: Best Way To Create A Temporary Unique File-name?

  • Thread starter Thread starter Patrick Tingen
  • Start date Start date
Status
Not open for further replies.
P

Patrick Tingen

Guest
We used a similar approach as Jeff mentioned, but at one point I had to investigate why it took up to 20 seconds to determine a 'free' file name. It turned out that files were not properly cleaned up when the process ended, so the temp-folder was full of temp files and most numbers were already used. So it had to iterate literally thousands of time before it could find a free number. I changed it to include both date and time in the temp name. * And * to clean up at the end of the process :)

Continue reading...
 
Status
Not open for further replies.
Back
Top