Search This Blog

Tuesday, November 5, 2013

GetRandomFileName C#

C# > Files > GetRandomFileName

GetRandomFileName returns a random cryptographically string that can be used as either a folder name or a file name. GetRandomFileName does not create a file.
 
Example:
string rndFile = Path.GetRandomFileName();