How to write a tree structure to disk (VBA without serialization)

Therefore, I use VBA (and not by choice) to do quite non-trivial programming and find this a nightmare. Usually I just use serialization to flush the class / object to disk and then read it back, but I cannot do this unless I write my own serialization function, which is basically what I ask how to do it .

I have a class

[Node.cls]
Public pictureName As String
Public tagGroup As String

' Collection of Node objects
Public children As New Collection

Public isOverViewScreen As Boolean

' Collections of strings
Public overViewScreenWellNames As New Collection
Public overViewScreenWellType As New Collection
Public overViewScreenOpenPictureName As New Collection

which is basically a node in a tree structure, such as node, with a set of child nodes that build a tree.

What would be the best way to dump this structure into a flat file and read it, any hints?

, , txt , , , , . ?

+3
1

, "" . , node , node , , , , .

, .

+2

All Articles