Re: [問題] 用java呼叫clips(.exe)
※ 引述《sonwil (阿資)》之銘言:
: Runtime rt e= 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();
: }
會是這樣嗎?
String[] cmd=new String("load c:\\123.txt").split(" ");
w.write(cmd);
w.flush();
我也是玩接觸這部份的人^^"
: 程式如上 我上網找到的說clips中會出現(load c://123.txt) (reset)指令
: 請問未何我只有打開clips指令,而沒有(load c://123.txt)(resrt) 呢
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.122.209.20
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 8 之 11 篇):