Read a embedded file from Resource file
By [)ia6l0 iii
You can store files as embedded resources and read them from your code at runtime.
The following sample shows you how to read a file from resources.
Assembly currentAssembly = Assembly.GetExecutingAssembly();
Stream stream =
currentAssembly.GetManifestResourceStream( "thenamespace.fileNameWithExtension");
Read a embedded file from Resource file (726 Views)