Hi, all
I intended to dump some dynamic array to an untyped file. I used blockwrite
and blockread to do that.
What I want to ask, is dynamic array's structure way different with static
array?
When I dump static array, I can easily use blockwrite and blockread with the
array's length as the count parameter, and it works well.
But when I change it to dynamic array and use blockwrite, I can't retrieve
the array with blockread, it has a way different elements, as if it is a
random entry. So, I use a lame write per element of the array. Is there a
faster way than what I have done?

One more, is there an optimal write/read count to a file, like every 8 bytes
or 1024 bytes? I always use per element loop to dump a dynamic array, but a
friend of mine suggest me to write/read it more than one element, to save
the time. I don't see this advantage at all.

Thanks.


[Non-text portions of this message have been removed]

Reply via email to