Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Internationalization / February 2005

Tip: Looking for answers? Try searching our database.

Resource File Manipulation

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JezB - 25 Feb 2005 17:30 GMT
I have used ResourceWriter and ResourceReader for writing a reading resource
files.

What I want to know is, can I open a resource file in "Append" mode so that
I can read entries from it and add new entries that don't yet exist ?

Or will I have to open a ResourceReader, read and save all the entries in
some collection, then use a ResourceWriter to write these plus any
additional entries to the same file name? Seems very inefficient ....
Guy Smith-Ferrier - 28 Feb 2005 08:57 GMT
Jez,

You are correct. There is no Append mode. As you say, you have to read all
of the entries in and then add the new ones.

Guy Smith-Ferrier

>I have used ResourceWriter and ResourceReader for writing a reading
>resource
[quoted text clipped - 7 lines]
> some collection, then use a ResourceWriter to write these plus any
> additional entries to the same file name? Seems very inefficient ....
JezB - 28 Feb 2005 11:02 GMT
OK thanks Guy. I'm worried about performance for large numbers of big
resource files but if this is the only way then so be it !

> Jez,
>
[quoted text clipped - 14 lines]
>> some collection, then use a ResourceWriter to write these plus any
>> additional entries to the same file name? Seems very inefficient ....
Guy Smith-Ferrier - 28 Feb 2005 13:47 GMT
Jez,

You will need to make a judgement here but if performance is the most
important issue then you could reject the ResourceReader/ResourceWriter
classes and code the solution another way. I wouldn't recommend this though
and I haven't found their performance warrants bypassing them.

Guy

> OK thanks Guy. I'm worried about performance for large numbers of big
> resource files but if this is the only way then so be it !
[quoted text clipped - 18 lines]
>>> some collection, then use a ResourceWriter to write these plus any
>>> additional entries to the same file name? Seems very inefficient ....

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.