XML file

  • Thread starter Thread starter Bryan
  • Start date Start date
B

Bryan

I have an XML file that I want to add to the project so that I can save
the state of some object. It is working to just save this file in the
Debug folder, but that does not get CVS'd. I want it in the directory
with the rest of the code. So I put it there and added that file to the
project. How do I reference this file from within the code?

--Bryan
 
If you add it to the project it gets embedded as a resource. you can get
a stream to read a resource by its filename - look it up in MSDN
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top