public void displayMenu() throws Exception {
	 printCommands();
     while(true)
     {    
    	 
         System.out.print("740ftp>");
         String input = stdinBR.readLine();
         String[] command = input.split(" ");
         //System.out.println(command[0]);
         //System.out.println(command[1]);
         if(command[0].equals("quit"))
         {
        	 
        	 dout.writeUTF("quit");
        	 ClientSoc.close();
             System.exit(1);
             
         }
         else if(command[0].equals("get"))  {
        	 
        	 File f=new File(command[1]);
        	 if(f.exists())
             {
                 String Option = null;
                 System.out.println("File Already Exists. Want to OverWrite (Y/N) ?");
                 Option=stdinBR.readLine();            
                 if(Option.equals("N") || Option.equals("n"))    
                 {
                     dout.flush();
                     continue;    
                 }
                 else if (!Option.equals("Y") && !(Option.equals("y"))){
                	 System.out.println("invalid choice");
                	 dout.flush();
                	 continue;
                 }
             }
        	 
        	 
             dout.writeUTF(input);
             getFile(command[1]);
         }
         else if(command[0].equals("post"))
         {
        	 dout.writeUTF(input);
             postFile(command[1]);
         }
         else {
        	 System.out.println("\n  !!! invalid commands \n  ");
        	 printCommands();
         }
         	
     }
 }