i need to load xml from a resource that is ousdie of my prject directory
i this like :
http://www.skystonesoftware.com/tempest/engine/?Site=87f3e857-12cd-426f-b36c-3ab
9c19697ff&Page=aaec41cd-a505-4d06-a166-94929eb94d80&Entry=E6B04947-CE86-4C48-B8A
8-D99BA936571F
in the part code :
Dim clsResourceStream As System.IO.Stream _
=
System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("WindowsApplication1.temp.txt")
it load a page that is part of the project and under its directories!
how can i load a file ffrom a diffrent PATH>???
thnaks in advance
PEleg
Peter Bromberg [C# MVP] - 10 Sep 2007 12:38 GMT
Your sample code is attempting to load an embedded resource from the
assembly. You need to use a FileStream object to load the desired file from
the actual physical location on disk instead.
-- Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com
> i need to load xml from a resource that is ousdie of my prject directory
> i this like :
[quoted text clipped - 8 lines]
> thnaks in advance
> PEleg