I
Ivan S
I tried something like this:
try {
Process p = Runtime.getRuntime().exec("somepathto\
\some.exe");
String line = null;
BufferedReader read = new BufferedReader(new
InputStreamReader(p.getInputStream()));
while((line = read.readLine()) != null) {
System.out.println(line);
}
int exitVal = p.waitFor();
System.out.println("Exit value = " + exitVal);
}
catch (Throwable e) {
e.printStackTrace();
}
....but it doesn't work.
When I try to read one by one character (using read() method) it
produces some output, but not all.
Can anyone help me? Thanks in advance.
try {
Process p = Runtime.getRuntime().exec("somepathto\
\some.exe");
String line = null;
BufferedReader read = new BufferedReader(new
InputStreamReader(p.getInputStream()));
while((line = read.readLine()) != null) {
System.out.println(line);
}
int exitVal = p.waitFor();
System.out.println("Exit value = " + exitVal);
}
catch (Throwable e) {
e.printStackTrace();
}
....but it doesn't work.
When I try to read one by one character (using read() method) it
produces some output, but not all.
Can anyone help me? Thanks in advance.