I need to check if an xml file exists in the folder.
DirectoryInfo di = new DirectoryInfo(ProcessingDirectory); FileInfo[] TXTFiles = di.GetFiles(\"*.xml\");
To check file exists or not you can use
System.IO.File.Exists(path)