Created
September 14, 2012 17:09
-
-
Save mattnworb/3723290 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
InputStream inputstream = process.getInputStream(); | |
BufferedReader br = new BufferedReader(new InputStreamReader(inputstream)); | |
String line; | |
while ((line = br.readLine()) != null) { | |
// handle the new line of input from the process however you want | |
gsc.mainWindow.printf("Got another line! " + line); | |
// do anything else you want with the input - send it as many places as you like | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment