I need some help with my program. I am trying to execute another program from my Java program. It is a program that is usually run from a Command Prompt by typing D:\program\prog<D:\program\input.IN. Here is my code:
The program prog is supposed to create a couple of output files, using the informations in the file input.IN, but nothing happens.
posted 9 years ago
I'm not sure if stream redirection generally works with Runtime.exec, but that method has some pitfalls to avoid.