I need to check if the xml file exists in the folder.
DirectoryInfo di = new DirectoryInfo(ProcessingDirectory); FileInfo[] TXTFiles = di.GetFiles("*.xml"); if (TXTFiles.Length == 0) { log.Info("no files present") }
This is the best way to check the file in the folder.
I need to check only the xml file is present
c # xml file fileinfo
user386258 Sep 12 '11 at 8:41 2011-09-12 08:41
source share