How to

generate random file name

Published: 25. October 2011 | Updated: 25. October 2011
License: Microsoft Public License (MS-PL)
Categories: File system
Tags: C# Windows
Was this snippet helpful for you? YESYES / NONO
Get Analyzant!

Check your entire website from code to content in minutes with Analyzant, the free analysis suite.

Free download at

Import namespace

using System.IO;


string randomFileName = Path.GetRandomFileName();

Console Output:
Send us feedback about this snippet »

Related Snippets: