Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. import java.io.BufferedReader;
  2. import java.io.IOException;
  3. import java.io.InputStreamReader;
  4.  
  5. /**
  6. * Created by Ɓukasz on 23.01.2017.
  7. */
  8. public class App {
  9. public static void main(String... args) throws IOException {
  10. Runtime r = Runtime.getRuntime();
  11. Process p = r.exec("netwox");
  12.  
  13. BufferedReader b = new BufferedReader(new InputStreamReader(p.getInputStream(), "ISO-8859-2"));
  14. String line = "";
  15.  
  16. while ((line = b.readLine()) != null) {
  17. System.out.println(line);
  18. }
  19.  
  20. b.close();
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement