473,385 Members | 1,353 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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

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?
Nov 15 '05 #1
4 4916
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
Nov 15 '05 #2
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" <pa****@videotron.ca> wrote in message news:eY**************@TK2MSFTNGP10.phx.gbl...
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?
Nov 15 '05 #3
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.**********@gmx.at> wrote in message
news:Oh**************@tk2msftngp13.phx.gbl...
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

Nov 15 '05 #4
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" <pa****@videotron.ca> wrote in message
news:uI**************@TK2MSFTNGP09.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" <pe***@nospam.rilling.net> wrote in message
news:uP**************@TK2MSFTNGP09.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" <pa****@videotron.ca> wrote in message
news:eY**************@TK2MSFTNGP10.phx.gbl...
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?
Nov 15 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: jcwmtl | last post by:
Hello all I'm building a suite of free php applications to create virtual worlds. My problem is i can't get my file to refresh. I am not a programmer and i started using php this week. my only...
14
by: Michael Levin | last post by:
I've got the following problem. I'm a biologist and I have a device at work which monitors my frog habitat. The device has a bunch of sensors, and runs an embedded html server with some java...
3
by: craig | last post by:
i want to make a button that will start an embedded windows media player playing AND in full screen. i can do it with TWO buttons: <input onclick="MediaPlayer.controls.play();" type="button"...
0
by: magister | last post by:
Hello, Can anyone please help me to understand why when I use one XSD file to create a DataSet.cs file it gives me a much longer file with more cs code which allows Typing for all my elements...
1
by: D. Yates | last post by:
Hi, I am looking for an example of how to extract bitmap images from an embedded resource file (a file with *.res extension, which can be viewed inside of the ide and can hold bitmaps, icons,...
3
by: Saradhi | last post by:
How to get the names of all the Resources embedded in a Resource File? -SARADHI
14
by: Stingray | last post by:
I think this is more of a general IE/HTTP question but I didn't know where to post. If this is not the place for it, please point me to the right group. Thanks. Here's my question: I have an...
1
by: Angus Lepper | last post by:
I'm writing a stock ticker for a stock market simulation, and can load the data into the xmlreader in the first place, but can't figure out how to refresh/update the data in it. Any ideas? Code:...
65
by: Hongyu | last post by:
Dear all: I am trying to write to a file with full directory name and file name specified (./outdir/mytestout.txt where . is the current directory) in C programming language and under Unix, but...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.