Reputation: 8460
I have a bunch of database entries for use as resources in a web application.
I would like to put these entries into a resource (.resx) file, but there are over a thousand db entries and I would like to write a quick program to create the .resx file.
How can I create this file? I've looked at the ResourceWriter class, but when I tried that it corrupted my .resx file.
Can anyone provide any ideas or code samples? Any help would be appreciated!
Upvotes: 3
Views: 944
Reputation: 7944
Just use a plain StringBuilder to construct the xml content you need and then save it to the file.
Upvotes: 2