How do I copy file from resources to C:\Notes?

  • Thread starter Thread starter Mark B
  • Start date Start date
M

Mark B

How do I programmatically copy SpecialNote.txt from my C#'s project
resources to C:\Notes\ on user's PC at runtime?
 
How do I programmatically copy SpecialNote.txt from my C#'s project
resources to C:\Notes\ on user's PC at runtime?

Why did you ask this here and in the vb group with a slight modification?
 
System.Text.ASCIIEncoding myEncoding = new System.Text.ASCIIEncoding();
System.IO.File.WriteAllBytes(myXMLFileLocation,
myEncoding.GetBytes(Properties.Resources.AddinUserSettingsXML));
 
Back
Top