if (File.Exists(textBox1.Text)) { MessageBox.Show(textBox1.Text + "was found in your system"); }
var myFiles = Directory.GetFiles(@"c:\some\directory\"); // OR // Find all CS files in the directory myFiles = Directory.GetFiles(@"c:\some\directory\", "*.cs");
var allFiles = Directory.GetFiles(path, "*.xml", SearchOption.AllDirectories);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)