Yes I have flushed the writer. As I wrote earlier I can read & write to
another separate Java program but not C-program.
Onething I forgot to say though. I'm developing this program in Win98
platform although end of the day i have to run it on a Linux machine
for my university project. But I'm unable to test this on linux yet as
JDK is not ready on the Linux machine yet. Just thinking if this is a
MS problem?
I will be happy to know if someone had ever read & wrote to a console
based C -program from within a Java program in Linux platform (or
Win98)?
THanks for your tip anyway..
-Mak
<[EMAIL PROTECTED]> wrote:
original article:http://www.egroups.com/group/java-linux/?start=9804
> [EMAIL PROTECTED] wrote:
> >
> > 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
>
> Have you tried flushing the write buffer (writer.flush()) after you
> write?
>
> Nathan
>
>
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]