By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,705 Members | 1,301 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,705 IT Pros & Developers. It's quick & easy.

Is it possible to Embed Files (including Txt files) to a Resource?

P: 1
Hi,
I am a newbie to Globalization and Localisation Concepts. I tried almost all the methods of the Globalization concepts. But i cannot be able to embed a text file within a Resource.

My need is to open a solution programmatically, select a Project within, and get a source resource file. Then, select a number of cultures and create culture specific resources with the content of the source resource assembly.

I aquired upto 75% of the task. But, when i added files within the source resource file, i got error in the ResXResourceReader where i read the file. It is all due to the Relative Path issue. Then it is found, that embedding a resource need not have a path and can be accessed directly. Then i tried it for Image files and audio files. Both just worked fine.

But when it comes to text based files such as Text, PDF etc, i cannot embed the files.

Is it possible to embed text files within the Resource? If so How?

(or)

If not possible, then what should be the workaround to be made to access a text file within resource without the issues of Absolute and relative paths?

Thanking you in Advance,

Regards,
Vignesh. S

Developer @ CSI
Jul 1 '08 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.