How to get the full file name from an embedded text file?

  • Thread starter Thread starter Patrick Blackman
  • Start date Start date
P

Patrick Blackman

I have a text file embedded in my dll, how can I load that file without using the GetManifestResourceStream of the Assembly class, I want to read it as if it was just located in my c:\my document folder. Any ideas?
 
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
GetManifestResourceStream. What's wrong with it? You can use any reader
(text, binary, xml) you like to read the data.

GP
 
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.
I have a text file embedded in my dll, how can I load that file without using the GetManifestResourceStream of the Assembly class, I want to read it as if it was just located in my c:\my document folder. Any ideas?
 
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....
 
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.

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?
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.
I have a text file embedded in my dll, how can I load that file without
using the GetManifestResourceStream of the Assembly class, I want to read it
as if it was just located in my c:\my document folder. Any ideas?
 
Back
Top