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
[quoted text, click to view] "JezB" <jezbroadsword@blueyonder.co.uk> wrote in message
news:eMtvuSYHFHA.2620@tk2msftngp13.phx.gbl...
> 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 !
>
> "Guy Smith-Ferrier" <gsmithferrier@notspecified.com> wrote in message
> news:%23X2uHOXHFHA.2984@TK2MSFTNGP15.phx.gbl...
>> 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
>>
>> "JezB" <jezbroadsword@blueyonder.co.uk> wrote in message
>> news:OFDVs91GFHA.3912@TK2MSFTNGP10.phx.gbl...
>>>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 ....
>>>
>>>
>>
>>
>
>