Hi there

This is what I'm DESPERATLY after. I can read the output and write to
input BUT THIS IS ONLY IF it's another Java program that I am calling
within by Java program using:

Read:
is= GUIprogres.getInputStream();
BufferedReader reader = new BufferedReader(new InputStreamReader(is));
and then reader.readLine();

Write:

os=GUIprogres.getOutputStream();
BufferedWriter writer= new BufferedWriter(new InputStreamWriter(is));
and then writer.write();

This Does NOT work when I try to do the same with a CONSOLE-based
C-program

Any help would be VERY VERY APPRECIATED

Max


<[EMAIL PROTECTED]> wrote: 
original article:http://www.egroups.com/group/java-linux/?start=8850
> I am using the following method
> 
>       Process GUIprogres = Runtime.getRuntime().exec("a.out");
> 
> to call a C-program and I tryed to use
> the following command to catch the output
> from the C-program.
> 
>       GUIprogres.getOutputStream();
> 
> However, I don't know how to read streams
> from OutputStream().
> 
> Anyone can help will be appreciated.
> 
> --Simmy

> 


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to