Generating unique temp file name
I'm used to generate a GUID for temp files names when dealing with temp files to avoid file name duplications until I got a nice tip from http://dotnettipoftheday.org/tips/PathGetRandomFileName.aspx about using System.IO.Path.GetTempFileName() and System.IO.Path.GetRandomFileName()
- System.IO.Path.GetTempFileName() - use this method if you want to create temporary file in user's temp folder.
- System.IO.Path.GetRandomFileName() - use this method if you just want to generate unique file name.
very nice tip :)
Hosam Kamel