Java: Reading output from the Console/StdOut
Today I had a small problem. I wanted to start an external C++ console programm with some parameters and get the output back to my Java program. Here is a code snippet that reads the output from a console program: import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) …