.NET make a copy of an embedded file resource to the local drive
Posted
by Matt H.
on Stack Overflow
See other posts from Stack Overflow
or by Matt H.
Published on 2010-04-08T19:19:05Z
Indexed on
2010/04/08
19:23 UTC
Read the original article
Hit count: 218
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!
© Stack Overflow or respective owner