2 Replies Latest reply: Feb 14, 2008 10:50 PM by 3004 RSS

    Recursive In-Order Tree Traversal that saves data into file not working!!

           private void inOrderSaving(Node node)throws IOException
                RandomAccessFile rand = new RandomAccessFile(filet, "rw");
                PrintWriter printThis = new PrintWriter( new BufferedWriter( new FileWriter( filet, false)));
                if(node != null)
                     printThis.println(node.id+": "+node.name);
      it doesn't seem to work..i think maybe because it didn't close properly..so I tried putting it right after the println method...though it only writes one name....so please help...