Ok so i have an html document that i reference in my visual studio 2010 C# application that i need for the application to continue.
here is come code
string template = System.IO.File.ReadAllText("template.html");
the template.html file is currently in my debug directory and I want to be able to have it included if possible in the exe so the user doesnt need to have a copy of the html file for my application to run …any ideas on how to tackle this
you have to right click on the file and make it an embedded resource.
Then you can access your file with the below code:
more info at :http://msdn.microsoft.com/en-us/library/xc4235zt(v=vs.100).aspx