📜  java 如何输出到可执行文件 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:36.988000             🧑  作者: Mango

代码示例1
Process process = new ProcessBuilder("D:\\path\\executable.exe").start();

InputStream processInputStream = process.geInputStream();
OutputSteam processOutputStream = process.getOutputStream();

BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(processOutputStream));

BufferedReader reader = new BufferedReader(new InputStreamReader(processInputStream));