The simple serialization-deserialization API for storing a structure such as a tree in a binary file for the purpose of transferring data to another host or retrieving data later.
server
do only serialization of tree into binary filetext.txt
- To view a binary file, I recommend such a utility as
ghex
. Also you can useprintBuffer
function (her give the same result) client
only read generated lately binary file and restore Tree- Used breadth-first traversal