How to embed a file and then save it to a location? <p>I've added a <code>test.zip</code> to a C# project by creating a <code>Resource1.resx</code> and dragged to the resx tab. It is now visible in the Solution Explorer as a child of <code>Resources</code>.</p> <p>When the program runs, I'd like to move it from the .exe to a location on the computer like My Documents.</p> <p>I've a feeling I need to convert the resource to a memory stream before I can write it to file but I'm not sure how to access the file as resource or how to convert it.</p> <p>I <em>think</em> the following extracts the resource object (then again, it doesn't error no matter what the first param is) but I'm not sure how to proceed:</p> <pre><code>var resource = new ResourceManager("test", Assembly.GetExecutingAssembly()); </code></pre>