java Programming Glossary: inp.readline
java: how to both read and write to & from process thru pipe (stdin/stdout) http://stackoverflow.com/questions/4112470/java-how-to-both-read-and-write-to-from-process-thru-pipe-stdin-stdout p.getOutputStream out.write Some Text n n out.flush line inp.readLine print response1 line that's ok out.write Second Line... n out.flush.. line that's ok out.write Second Line... n out.flush line inp.readLine print response2 line returns an empty string if it returns inp.close.. for out.write Aaaaa nBbbbbb nCcccc n out.flush line inp.readLine print response1 line line inp.readLine print response2 line..
|