473,471 Members | 1,896 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

.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 1483

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: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.