G
Guest
I have written a short program which reads from XML and flat text files. I
have deployed the apllication wwith the files included but the app can no
longer find the files.
In the code, I read from the XML file with:
Dataset1.ReadXML("..\\..\\Student.xml");
This ran fine during debugging as the ..\\..\\ simply bumps it up a couple
of folders to the bin folder, where it can be read. However, once deployed
it bumped the search up to my C:\ drive. I tried to create a sub-folder
under the application folder in my set up but it still couldn't find the file.
Can anyone please tell me how to deploy an application which reads from text
or XML files.
have deployed the apllication wwith the files included but the app can no
longer find the files.
In the code, I read from the XML file with:
Dataset1.ReadXML("..\\..\\Student.xml");
This ran fine during debugging as the ..\\..\\ simply bumps it up a couple
of folders to the bin folder, where it can be read. However, once deployed
it bumped the search up to my C:\ drive. I tried to create a sub-folder
under the application folder in my set up but it still couldn't find the file.
Can anyone please tell me how to deploy an application which reads from text
or XML files.