Hello,
I know this is so simple I just must be tired.
I have written a c# class for my business layer.
When I create an XMLReader with the physical path of the XML file it works fine. But for production I do not know exactly what the path will be be.
How do I pass in the relative path to the application rather than the physical path?
Thanks in advance.
I know this is so simple I just must be tired.
I have written a c# class for my business layer.
When I create an XMLReader with the physical path of the XML file it works fine. But for production I do not know exactly what the path will be be.
How do I pass in the relative path to the application rather than the physical path?
Thanks in advance.
Code:
XmlReader xRdr = XmlReader.Create("c:/Projects/myappfolder/myappsubfolder/myxmlfile.xml", xRdrSet);