I need to check if an xml file exists in the folder.
DirectoryInfo di = new DirectoryInfo(ProcessingDirectory); FileInfo[] TXTFiles = di.GetFiles(\"*.xml\");
This helped me:
bool fileExists = (System.IO.File.Exists(filePath) ? true : false);