06/06/29 23:40:53
import java.io.InputStream;
import java.io.IOException;
public class SaikyouMemo {
public static void main(String[] args) {
try {
ProcessBuilder builder = new ProcessBuilder("notepad");
Process process = builder.start();
InputStream stream = process.getErrorStream();
while (true) {
int c = stream.read();
if (c == -1) {
stream.close();
break;
}
System.out.print((char)c);
}
} catch (IOException ex) {
ex.printStackTrace();
}
}
}