Re: [問題] 用java呼叫clips(.exe)
Runtime rt = Runtime.getRuntime();
Process pro=rt.exec("c:\\CLIPSwin.exe");
OutputStreamWriter w = new OutputStreamWriter(pro.getOutputStream());
String[] cmd = new String[] {
"(load c:\\123.txt)",
"(reset)"
};
for (int i = 0; i < cmd.length; ++i){
w.write(cmd[i]);
w.flush();
}
程式如上 我上網找到的說clips中會出現(load c://123.txt) (reset)指令
請問未何我只有打開clips指令,而沒有(load c://123.txt)(resrt) 呢
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.114.2.230
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 6 之 11 篇):