help with data output, input
Hi, not sure if this is considered a "New to Java" question but i have a program, "java1" that uses Process to call "java2", Process "p".
Then I run this code:
My java2 program is running:
stdOutput = new BufferedWriter(new OutputStreamWriter(p.getOutputStream()));
String input = textIn.getText();
stdOutput.write(input + "\n", 0, input.length() + 1);
The problem is that java2 doesn't receive the data that I send it. Any ideas?
InputStreamReader istream = new InputStreamReader(System.in) ;
BufferedReader bufRead = new BufferedReader(istream) ;
String firstName = bufRead.readLine();