0

How to open an embedded resource file without create the file in application directory, because all methods i tried creates the file in application directory.

1 Answers1

0

Try to use:

var manifestResource = Assembly.GetManifestResourceStream("myfile.xml");

Then you can work with a manifestResource in memory with a streamReader.

Look at the full example of David in this post, this might help you

Reading embedded XML file c#

[]'s

Renan Malagutti
  • 140
  • 1
  • 4