title: To store a Binary Tree in a File
body: <pre><code>How to store a binary tree in a file &amp; then read back.(Its not necessarily a BST)
  
                 A
              /     \
            B        C
          /   \
         D    E
  </code></pre>
  
  <p>For this we could have something like (A(B(D),(E)),(C)) for storing it in the file.
  But what if you hav  ‘(‘ ,  ’,’ characters in data of tree node . Then how to store it so that we could retrieve it and construct the original BT.</p>