string extension = Path.GetExtension(files[i]); if (validExtensions.Contains(extension)) { MessageBox.Show("hi");
string[] files = Directory.GetFiles(Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory), "*.txt"); if (files.Length > 0) { ... }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)