What do you want to save?
Add Code snippet
New code examples
-
C# 2022-03-09 22:25:06
get random file in directory c#
using System.IO; using System.Collections; var files = Directory.GetFiles("C:/path_example/example", "*.png"); //.png can be changed to match any other desired extentions string randomFilePath= files[Random.Range(0,files.Length)]; //e... Add solution -
C# 2022-02-15 22:45:04
how to check if file contains image c#
public static readonly List<string> ImageExtensions = new List<string> { ".JPG", ".JPE", ".BMP", ".GIF", ".PNG" }; private void button_Click(object sender, RoutedEventArgs e) { var folder ... Add solution
Best helpers
Ranking is empty