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
 
Back
Top