I am using a ResourceManager to retrieve values from a .resource file. I would like to be able to update the values in the file from within the application. Can this be done How
Thanks.
I am using a ResourceManager to retrieve values from a .resource file. I would like to be able to update the values in the file from within the application. Can this be done How
Thanks.
editing resource files
JRH147
Snkscore
I can't find the article about Winforms, but here is a quote for the Microsoft Direct X Logo:
mimino
Right. What I am trying to do is update an existing external resource file. I am using a ResourceManager to read the values from the resource file but don't know how to change the values within that file.
I know how to use a seperate application to create / edit resouce files. I am looking for a method of updating these files from within my application so I can save user selections.
Flea#
sbussinger
R. van Poelgeest
Use the registry or file system to save settings.
BobK_MN
The problem with a ResourceWriter is that it does not have a method to change the value of a resource entry. It only allows you to "Add" a resource and if that resource already exists it throws an exception. It seems that ResourceWriter is designed to create new resource file instead of editing an existing one.
Am I incorrect
Lagear
pcmarley
Bruder
Kaz
Why do you want to do this
Todd West
MizzouTiger
You normally never change something but allways, read it in memory, edit it and then flush (override) it to the file again.
So you have to build your own logic.
Normally this kind of settings belong in a config file or registery.
Mhd. akram
So are you saying that resource files should only be used for static / non-changing values
Since the config files I would have in mind would be very similar to a resource file (ie. containins a list of key value pairs) is there a mechanism / class in place for handling config files as ResourceManager handles resource files