I have a .exe file, It takes .txt file as a Input and it returns .txt files as outputs.
.exe
.txt
I have 2 folders names are Inpu
Inpu
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.
Runtime.exec()