boolean consoleADDUSER()                   
    {   
        System.out.print("请键入用户 :");   
        try   
        {   
            cin = new BufferedReader(new InputStreamReader(System.in));   
            UserInfo tempUserInfo = new UserInfo();   
            String line = cin.readLine();   
            if(line != "")   
            {   
                if(!validateUserName(line))//已存在这个用户   
                {   
                    System.out.println("用户名 "+line+" 已注册!");   
                    return false;   
                }   
            }   
            else   
            {   
                System.out.println("用户名不能为空 !");   
                return false;   
            }   
               
            tempUserInfo.user = line;   
            System.out.print("请键入密码 :");   
            line = cin.readLine();   
            if(line != "")   
                tempUserInfo.password = line;   
            else   
            {   
                System.out.println("密码不能为空 !");   
                return false;   
            }   
            System.out.print("输入用户主目录 : ");   
            line = cin.readLine();   
            if(line != "")   
            {   
                File f = new File(line);   
                if(!f.exists())   
                    f.mkdirs();   
                tempUserInfo.workDir = line;   
            }   
            else   
            {   
                System.out.println("主目录不能为空 !");   
                return false;   
            }   
            FtpServer.usersInfo.add(tempUserInfo);   
            saveUserInfo();   
        }   
        catch(Exception e)   
        {   
            e.printStackTrace();   
            return false;   
        }   
        return false;   
    }