I have a text file embedded in my dll, how can I load that file without using the GetManifestReso urceStream of the Assembly class, I want to read it as if it was just located in my c:\my document folder. Any ideas?
How to get the full file name from an embedded text file?
Collapse
This topic is closed.
X
X
-
Patrick BlackmanTags: None -
Günter Prossliner
Re: How to get the full file name from an embedded text file?
[color=blue][color=green]
>> without using the GetManifestReso urceStream of the Assembly class, I want[/color][/color]
to read it as if it was just located in my c:\my document folder.
I want to drive my car WITHOUT STARTING THE ENGINE, any ideas? .Net offers
you the ability to read embedded resouce - files through
GetManifestReso urceStream. What's wrong with it? You can use any reader
(text, binary, xml) you like to read the data.
GP
-
Peter Rilling
Re: How to get the full file name from an embedded text file?
An embedded resource is just that, "embedded". There is no concept of a "file path". You need to read the content using the standard resource APIs.
"Patrick Blackman" <patann@videotr on.ca> wrote in message news:eYTa8GUZDH A.2256@TK2MSFTN GP10.phx.gbl...
I have a text file embedded in my dll, how can I load that file without using the GetManifestReso urceStream of the Assembly class, I want to read it as if it was just located in my c:\my document folder. Any ideas?
Comment
-
Mikael Janers
Re: How to get the full file name from an embedded text file?
Whats your problem ? Theres no need to be rude just because you know more
than someone else. Next time it might be you who needs help....
"Günter Prossliner" <g.prossliner@g mx.at> wrote in message
news:Ohv45zUZDH A.1580@tk2msftn gp13.phx.gbl...[color=blue]
>[color=green][color=darkred]
> >> without using the GetManifestReso urceStream of the Assembly class, I[/color][/color][/color]
want[color=blue]
> to read it as if it was just located in my c:\my document folder.
>
> I want to drive my car WITHOUT STARTING THE ENGINE, any ideas? .Net offers
> you the ability to read embedded resouce - files through
> GetManifestReso urceStream. What's wrong with it? You can use any reader
> (text, binary, xml) you like to read the data.
>
> GP
>
>[/color]
Comment
-
Peter Rilling
Re: How to get the full file name from an embedded text file?
Cryptography only deals with streams and byte arrays. The examples you have
seen probably just use files for convenience. Once you have loaded the
information from the resource, you should be able to use symmetric or
asymmetric algorithms to perform the decryption.
"Patrick Blackman" <patann@videotr on.ca> wrote in message
news:uImLVEaZDH A.2632@TK2MSFTN GP09.phx.gbl...
Thanks....I can take the hassle... Anyway I ask that question because the
embedded file was encrypted and all the samples I have seen with regard to
decrypting a file are used with a file path not a stream. Any ideas?
"Peter Rilling" <peter@nospam.r illing.net> wrote in message
news:uP3HARVZDH A.2572@TK2MSFTN GP09.phx.gbl...
An embedded resource is just that, "embedded". There is no concept of a
"file path". You need to read the content using the standard resource APIs.
"Patrick Blackman" <patann@videotr on.ca> wrote in message
news:eYTa8GUZDH A.2256@TK2MSFTN GP10.phx.gbl...
I have a text file embedded in my dll, how can I load that file without
using the GetManifestReso urceStream of the Assembly class, I want to read it
as if it was just located in my c:\my document folder. Any ideas?
Comment
Comment