Outputting a binary search tree to a txt file in java using scanner/printwriter
<p>I know how to input and output normal types such as Strings, ints, etc. 
My problem is outputting voids. 
I know it's incorrect and I'm trying to find a way to do it. 
Here's my setup (the usual)</p>

<pre><code>PrintWriter output new PrintWriter(System.out);

BST tree = new BST();
</code></pre>

<p>import stuff from text file into BST, I can do all this. Here's the part I'm having trouble with:</p>

<pre><code>output.println(tree.print());
</code></pre>

<p>I understand the problem, I'm trying to print a void. Is there any way I can do this operation? 
Also I was wondering if it were possible for me to use the same input file I used and erase all the info it had on it and output to the same file. 
Any pointers in the right direction would be appreciated. Thank you!</p>
