How can I Monitor External files in Java

后端 未结 2 711
小鲜肉
小鲜肉 2020-12-22 04:59

I have a .exe file, It takes .txt file as a Input and it returns .txt files as outputs.

I have 2 folders names are Inpu

2条回答
  •  清歌不尽
    2020-12-22 05:31

    For running an external process (a .exe program in this case), forget about Runtime.exec(). Instead use ProcessBuilder; the documentation states that it's the preferred way to start up a sub-process these days.

提交回复
热议问题