Storing a Text File as an Embedded Resource

  • Thread starter Thread starter Bruce
  • Start date Start date
B

Bruce

I would like to store a text file as an embedded resource, and then at
runtime read it in as if it were a text file on the hard drive.

Is this possible?

--Bruce
 
you can create a txt file to store values in this form: Key = Value

e.g.
btnCancel.Text = Cancel
errorMessage = This is an Error Message

Now you can convert the txt with the .NET toll resgen.exe to a resx file.

from this resx file you can read during runtime with an resource manager
the values.

could be that you have to link it to your asembly with al.exe.
im not sure, its been while i did that last time.

but i think these are the keywords to solve your problem.

im sure anyone in here can explain it better.

cheers
 
Back
Top