M
michael.shnitzer
I have a dos program that I wish to access through my java program... I
can run the program and read the programs output using
DataInputStream in = new DataInputStream(new BufferedInputStream
process.getInputStream()));
But when I try to write to the program using...
DataOutputStream out = new DataOutputStream(new
BufferedOutputStream(process.getOutputStream()));
out.write(command.getBytes());
out.flush();
I get no response from the program and it doesn't seem to respond to
the command.
I am trying this on xp.
can run the program and read the programs output using
DataInputStream in = new DataInputStream(new BufferedInputStream
process.getInputStream()));
But when I try to write to the program using...
DataOutputStream out = new DataOutputStream(new
BufferedOutputStream(process.getOutputStream()));
out.write(command.getBytes());
out.flush();
I get no response from the program and it doesn't seem to respond to
the command.
I am trying this on xp.