0

Process p = Runtime.getRuntime().exec("C:\\tc\\bin\\" + prog_name , null);
BufferedReader stdError = new BufferedReader(new InputStreamReader(p.getInputStream()));
System.out.println("Here is the standard op :\n");
s1=stdError.readLine();


i have this code can anyone tell me how to run c program using java
thanks !

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by NormR1
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.