2 Replies Latest reply on Feb 15, 2008 4:50 AM by 3004

    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...