.NET make a copy of an embedded file resource to the local drive
- by Matt H.
Hi, i'm new to the realm to working with Files in .NET
I'm creating a WPF application in VB.NET with the 3.5 Framework. (If you provide an example in C#, that's perfectly fine.)
In my project I have a Template for an MS Access database. My desired behavior is that when the users clicks File--New, they can create a new copy of this template, give it a filename, and save it to their local directory.
The database already has the tables and some starting data needed to interface with my application (a user-friendly data editor)
I'm thinking the approach is to include this "template.accdb" file as a resource in the project, and write it to a file somehow at runtime?
Any guidance will be very, very appreciated.
Thanks!