How to get random file name in C#

1 Answer

0 votes
using System;
using System.IO;

public class Program
{
    public static void Main(string[] args) {
        Console.WriteLine(Path.GetRandomFileName());
    }
}



/*
run:

icl3edhf.z6d

*/

 



answered Nov 6, 2022 by avibootz

Related questions

1 answer 165 views
1 answer 148 views
148 views asked Feb 15, 2017 by avibootz
1 answer 117 views
1 answer 103 views
103 views asked Nov 6, 2022 by avibootz
1 answer 106 views
1 answer 123 views
...