Re: Piping output from C to Java
Posted By:
Stephen_Ostermiller
Posted On:
Monday, June 7, 2004 05:09 AM
From your Java program use the Runtime.getRuntime().exec() method to call your C program. This will return a Process object from which you can call getOutputStream() to get the stream of data from the C program.
Re: Piping output from C to Java
Posted By:
James_Rome
Posted On:
Wednesday, June 2, 2004 09:10 AM
I guess I can do this on the command line but how do I start both programs at once, and is there a way to tell if the Java program has been called with a piped input? If not, I would like to be able to have the user open a file.