المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : extract files with the filestream



C# Programming
10-12-2009, 08:30 AM
Hey

I extract a file with the filestream and one code is:
FileStream fs = new FileStream("C:\\hello.dll", FileMode.CreateNew, FileAccess.Write, FileShare.None);
{
fs.Write(Properties.Resources.hello, 0, Properties.Resources.hello.Length);
fs.Flush();
fs.Close();
}
that is for the first dll.

and i want the same for the second dll she is called System.Data.SQLite.dll and when i write the name instead of hello it doesn´t know that it is the name of the dll. Is there a change that it works?

PC17