public static boolean saveCmd(String strCmd, StrideTrie trie){

        try{

            if( strCmd.isEmpty() ) return false;
            String[] strs = strCmd.split("\\s+");
            if( strs[0].compareTo("save")!=0 ) return false;

            if( strs.length<2 ){
                System.out.println(" Save filename is neede!");
            } else {
                String strFile = strs[1];
                if (strFile.charAt(0) != '/') {
                    strFile = Util.getCurDir() + strFile;
                }

                saveToFile(trie, strFile);

                System.out.println("Save to File completed! Total entries is " + trie.m_total);
            }
            //get ip address and netmasklen

        }catch (Exception ex){
            System.out.println(strCmd + " failed!");
            //ex.printStackTrace();
            return false;
        }
        return true;

    }