I am trying to read a txt file into a binary tree. I have the computer create the binary tree from the txt file. Once it adds to the binary it learns what you add.

I got it to do the second portion I cant get it read it in correctly. I know for the tree needs use a preorder tree traversal.

I know I am not doing it incorrectly can someone point me into the right step.

the bintree-template.txt is supposed to be a bintree.template file. I cant upload a .template file

So basically you are having a problem with file input? Can you post that code (using code tags)? Maybe make a small, compilable demo (< 30 lines) of what is going wrong?