473,320 Members | 1,936 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

.NET ResourceWriter.AddResource() cannot append items to existing resource file, is that true?

Hi,

I am trying to use below code to write .NET resource files. What I am
expecting is to append items to an exsiting file. But any time below code
just remove exsting items and just write the new items into the file.

Could any people help achieve my simple objective? Any info will be
appreciated, thanks a lot!

--------------------------------

private void WriteRes()

{

IResourceWriter rw = new
ResourceWriter(@"C:\develop\try_ResMgr\ResMgr\MyRe sources\MyResource.resourc
es");

rw.AddResource("First", "Mercury");

rw2.Generate();

rw2.Close();

}

----------------------------------

By the way, I read a sample app of writing resource files. Whenever it wants
to write something, it always read all existing items, and then write all
items including both new and existing old items into the file again.

Should I necessarily do this as well?

Thanks!

LLI
Jul 21 '05 #1
0 1481

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Rolf Rosenquist | last post by:
With the following code I can create a new textfile if it does not exist, but it seems impossible to me, to append data to an existing file. Dim objOpenFile, objFSO, strPath StrPath =...
4
by: Jon Rista | last post by:
I have a project where I need to create a windows .exe by compiling code and linking in some resources. This program thats being generated is somewhat unconventional, and I'll explain how. I'm...
0
by: msnews.microsoft.com | last post by:
Hi, I am trying to use below code to write .NET resource files. What I am expecting is to append items to an exsiting file. But any time below code just remove exsting items and just write the...
1
by: coz | last post by:
Someone please help! I cannot for the life of me get a web resource in asp.net 2.0 to return any content. I know I have correctly embedded my resources (because I can manually get the resources...
6
by: Bob Kochem | last post by:
I am looking for a way via code to access all the menu itmes on a given form. I am looking for something like the Forms or Controls collections, but for menu items. Is there such a thing or method?...
2
by: avanti | last post by:
Hi, I use ClickOnce to publish and install an application in the company. I have a help file for the same in .chm format. It is part of the C# project as a 'content' file. I also tried as...
2
by: sree reddy | last post by:
..cs using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls;
2
by: karinmorena | last post by:
I'm having 4 errors, I'm very new at this and I would appreciate your input. The error I get is: Week5MortgageGUI.java:151:cannot find symbol symbol: method allInterest(double,double,double)...
2
by: CSharper | last post by:
I have a resource file I have created using ResourceWriter, next time when it runs, I want to check if the resource already exists and if does, I want to open it and add more objects to resource....
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.