java how to output to a executable

Solutions on MaxInterview for java how to output to a executable by the best coders in the world

showing results for - "java how to output to a executable"
Dante
09 Oct 2019
1Process process = new ProcessBuilder("D:\\path\\executable.exe").start();
2
3InputStream processInputStream = process.geInputStream();
4OutputSteam processOutputStream = process.getOutputStream();
5
6BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(processOutputStream));
7
8BufferedReader reader = new BufferedReader(new InputStreamReader(processInputStream));