Quote Originally Posted by Brainer
My plan is to store it as a tree, at the end of the file. Also, I'm not sure if you noticed, I set a limit to the maximum size of a disk.
Is not that a waste of disk space.? E.g. if you plan on using 2gb at the max and store the tree at the end you make a 2gb empty file first?

Quote Originally Posted by Brainer
Why do you use a TStream-descendant class, btw? I saw it multiple times in other projects, couldn't understand it at all.
Yes it is not easy and i encountered lots of bugs while writing it :-)
But in general streams are an easy to use. E.g. lots of components in delphi provide easy ways of using them. E.g. Memo1.Lines.SaveToStream(MyStream);