PC Review


Reply
Thread Tools Rate Thread

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

 
 
Patrick Blackman
Guest
Posts: n/a
 
      18th Aug 2003
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?
 
Reply With Quote
 
 
 
 
Günter Prossliner
Guest
Posts: n/a
 
      18th Aug 2003

>> 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.

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


 
Reply With Quote
 
 
 
 
Peter Rilling
Guest
Posts: n/a
 
      18th Aug 2003
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" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
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?
 
Reply With Quote
 
Mikael Janers
Guest
Posts: n/a
 
      18th Aug 2003
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> >> 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.
>
> 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
>
>



 
Reply With Quote
 
Peter Rilling
Guest
Posts: n/a
 
      20th Aug 2003
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
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?


 
Reply With Quote
 
 
 
Reply

« typeof | DatTables »
Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
if I know the last name can I get the first name from the full name? Kelvin Beaton Microsoft Access 11 25th Jul 2007 10:09 PM
if I know the last name can I get the first name from the full name? Kelvin Beaton Microsoft Access Queries 11 25th Jul 2007 10:09 PM
how do I reveerse name order last name, first name to first name, last name Don Smith Microsoft Excel Discussion 9 29th Nov 2006 10:55 PM
Separating a full name text field into First Name & Last Name =?Utf-8?B?U2Ft?= Microsoft Access Form Coding 1 16th Aug 2005 03:48 PM
Options for generic full-text search without using database-specific full-text engine? Samuel R. Neff Microsoft ASP .NET 2 10th Jun 2005 07:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:29 PM.