This is a way to see if any XML-files exists in that folder, yes.
To check for specific files use File.Exists(path)
, which will return a boolean indicating wheter the file at path
exists.
More Related Contents:
- how to read all files inside particular folder
- Adding elements to an xml file in C#
- XDocument or XmlDocument
- Recursion, parsing xml file with attributes into treeview c#
- Open existing file, append a single line
- Notification when a file changes?
- How to Read XML in .NET?
- DataContract XML serialization and XML attributes
- HTTP post XML data in C#
- Why can’t I use System.IO.File methods in an MVC controller?
- Getting attribute value of an XML Document using C#
- Encoding space character in XML name
- How can I create a temp file with a specific extension with .NET?
- Detect if PDF file is correct (header PDF) [closed]
- How to remove a single Attribute (e.g. ReadOnly) from a File?
- How to define multiple names for XmlElement field?
- Passing parameters to XSLT Stylesheet via .NET
- How to create XmlElement attributes with prefix?
- Parsing XML using XDocument
- open file in exclusive mode in C#
- How to use XPath function in a XPathExpression instance programatically?
- Binding properties in code behind
- Deserialize object property with StringReader vs XmlNodeReader
- Use the XmlInclude or SoapInclude attribute to specify types that are not known statically
- How/Can I use linq to xml to query huge xml files with reasonable memory consumption?
- Writing XML attributes and namespace declarations in a specific order
- Read nodes of a xml file in C#
- How do I return XML from a Stored Procedure?
- How to convert JSON to XML or XML to JSON in C#?
- Why does System.IO.File.Exists(string path) return false?