![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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 .... |
#3
| |||
| |||
|
|
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 (AT) blueyonder (DOT) co.uk> wrote in message news:OFDVs91GFHA.3912 (AT) TK2MSFTNGP10 (DOT) 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 .... |
#4
| |||
| |||
|
|
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 (AT) notspecified (DOT) com> wrote in message news:%23X2uHOXHFHA.2984 (AT) TK2MSFTNGP15 (DOT) 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 (AT) blueyonder (DOT) co.uk> wrote in message news:OFDVs91GFHA.3912 (AT) TK2MSFTNGP10 (DOT) 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 .... |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |