Accesing a xml
-
Hi, I need help with this. I added a xml file into my project. Now, in one class i need to acces it so i can process the data in it. How can i do this? how can i get the path of it so i can access it? Thank u so much, i would help me a lot...
In order to acces a file that is in the same path with the executable you can try the
Application.StartupPath
property. I hope you understand...because is a rough world out there... -
In order to acces a file that is in the same path with the executable you can try the
Application.StartupPath
property. I hope you understand...because is a rough world out there... -
Put this into your code.
string pathToMyExe = System.Windows.Forms.Application.StartupPath;
I hope you understand...because is a rough world out there... -
Put this into your code.
string pathToMyExe = System.Windows.Forms.Application.StartupPath;
I hope you understand...because is a rough world out there... -
use
Server.MapPath
to get physical pathServer.MapPath("Direcory1\filename.xml");
MCAD -- modified at 17:40 Thursday 1st September, 2005 -
use
Server.MapPath
to get physical pathServer.MapPath("Direcory1\filename.xml");
MCAD -- modified at 17:40 Thursday 1st September, 2005