Click here to Skip to main content
15,908,264 members
Home / Discussions / C#
   

C#

 
GeneralRe: file path Pin
Csharp_Raja19-Aug-08 3:17
Csharp_Raja19-Aug-08 3:17 
GeneralRe: file path Pin
arkiboys19-Aug-08 3:19
arkiboys19-Aug-08 3:19 
GeneralRe: file path Pin
Csharp_Raja19-Aug-08 3:24
Csharp_Raja19-Aug-08 3:24 
GeneralRe: file path Pin
Csharp_Raja19-Aug-08 3:30
Csharp_Raja19-Aug-08 3:30 
GeneralRe: file path Pin
arkiboys19-Aug-08 3:33
arkiboys19-Aug-08 3:33 
GeneralRe: file path Pin
Csharp_Raja19-Aug-08 4:53
Csharp_Raja19-Aug-08 4:53 
GeneralRe: file path Pin
arkiboys19-Aug-08 20:59
arkiboys19-Aug-08 20:59 
AnswerRe: file path Pin
chaiguy133719-Aug-08 16:02
chaiguy133719-Aug-08 16:02 
Here's a chunk of code that might help you with this. If you set "test.xml" as an "embedded resource", rather than "content", then it will actually reside inside the compiled library file, and you can access it like this:

using ( Stream prototype = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream( "Namespace.test.xml" ) ) {
	byte[] fileData = new byte[ prototype.Length ];
	prototype.Read( fileData, 0, (int)prototype.Length );
	File.WriteAllBytes( filePath, fileData );
}


Be sure to use the namespace when identifying the file name. I think there are other overloads of this function you can use as well.

“Time and space can be a bitch.”
–Gushie, Quantum Leap

{o,o}.oO( Looking for a great RSS reader? Try FeedBeast! )
|)””’)            Built with home-grown CodeProject components!
-”-”-

GeneralRe: file path Pin
arkiboys19-Aug-08 21:23
arkiboys19-Aug-08 21:23 
GeneralRe: file path Pin
Csharp_Raja20-Aug-08 4:03
Csharp_Raja20-Aug-08 4:03 
GeneralRe: file path Pin
arkiboys20-Aug-08 4:21
arkiboys20-Aug-08 4:21 
GeneralRe: file path Pin
Csharp_Raja20-Aug-08 4:31
Csharp_Raja20-Aug-08 4:31 
GeneralRe: file path Pin
arkiboys20-Aug-08 4:50
arkiboys20-Aug-08 4:50 
Questionconvert fro, .wav to g.711 to push sound file in cisco telephone Pin
zumty18-Aug-08 23:21
zumty18-Aug-08 23:21 
AnswerRe: convert fro, .wav to g.711 to push sound file in cisco telephone Pin
DaveyM6918-Aug-08 23:46
professionalDaveyM6918-Aug-08 23:46 
GeneralRe: convert fro, .wav to g.711 to push sound file in cisco telephone Pin
zumty19-Aug-08 0:06
zumty19-Aug-08 0:06 
GeneralRe: convert fro, .wav to g.711 to push sound file in cisco telephone Pin
DaveyM6919-Aug-08 0:32
professionalDaveyM6919-Aug-08 0:32 
GeneralRe: convert fro, .wav to g.711 to push sound file in cisco telephone Pin
zumty19-Aug-08 1:06
zumty19-Aug-08 1:06 
QuestionRequest.QueryString Clear Pin
Agweet18-Aug-08 23:15
Agweet18-Aug-08 23:15 
AnswerRe: Request.QueryString Clear Pin
AhsanS18-Aug-08 23:24
AhsanS18-Aug-08 23:24 
GeneralRe: Request.QueryString Clear Pin
Agweet18-Aug-08 23:31
Agweet18-Aug-08 23:31 
GeneralRe: Request.QueryString Clear Pin
AhsanS18-Aug-08 23:38
AhsanS18-Aug-08 23:38 
AnswerRe: Request.QueryString Clear Pin
Jim Brooks25-Jun-09 10:33
Jim Brooks25-Jun-09 10:33 
QuestionRead Mail from Exchange Mail Server Pin
Programm3r18-Aug-08 23:09
Programm3r18-Aug-08 23:09 
QuestionRe: Read Mail from Exchange Mail Server Pin
Programm3r19-Aug-08 0:02
Programm3r19-Aug-08 0:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.