NEED HELP:reading output from ms-dos program (with exec)
I'm trying to execute an ms-dos program using exec,
and reading it's output.
the program is running ,but, I can't see it's output.
I've tried many variations of this code:
Process p = Runtime.getRuntime().exec("file_name");
try { p.waitFor();}
catch(Exception e) {}
BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream()));
String line;
while((line = input.readLine()) != null )
{
please help mewith this - thanks, froy
System.out.println(line);
}
System.out.println(p.exitValue());

