R
Rob Taylor
I've inherited a .NET project that I'm debugging the code to. I'm
completely new to .net as well. I have a line in my code that reads an
XML file, however, I cannot figure out the reference point that a
relative path starts from. I.e., the following line
XmlTextReader reader = new XmlTextReader( "..\\..\\..\\filename.xml" )
points to "BaseURI "file:///C:/Program Files/filename.xml" string
When I step through the code even though my project is in
c:\projects\... I don't want to hard code a path into the code as that
wouldn't be practical. What is it starting point for the relative path
and how can I change it?
Thank you.
Rob
completely new to .net as well. I have a line in my code that reads an
XML file, however, I cannot figure out the reference point that a
relative path starts from. I.e., the following line
XmlTextReader reader = new XmlTextReader( "..\\..\\..\\filename.xml" )
points to "BaseURI "file:///C:/Program Files/filename.xml" string
When I step through the code even though my project is in
c:\projects\... I don't want to hard code a path into the code as that
wouldn't be practical. What is it starting point for the relative path
and how can I change it?
Thank you.
Rob