G
garyusenet
Hi all,
at the moment i'm saving a treeview and all its nodes by serialising it
and storing it in a file.
I recently openeing the file which had quite a lot of plain text in it
and noticed that certain phrases repeated themselves throughout the
file many, many times. These phrases seemed to reference properties in
the treeview - which is of course what I expected.
Is there any way I can write the file so that common phrases are
replaced with 'tokens' (probabally the wrong word). And these tokens
are defined at the start of the file.
The reason for this is that I think it would save so much space in the
file.
I'm sure there's a simple explanation for this, but am new to system.IO
- so please be patient!
Thanks,
Gary.
at the moment i'm saving a treeview and all its nodes by serialising it
and storing it in a file.
I recently openeing the file which had quite a lot of plain text in it
and noticed that certain phrases repeated themselves throughout the
file many, many times. These phrases seemed to reference properties in
the treeview - which is of course what I expected.
Is there any way I can write the file so that common phrases are
replaced with 'tokens' (probabally the wrong word). And these tokens
are defined at the start of the file.
The reason for this is that I think it would save so much space in the
file.
I'm sure there's a simple explanation for this, but am new to system.IO
- so please be patient!
Thanks,
Gary.