FileDocCategorySizeDatePackage
ExecDemoSimple.javaAPI DocExample295Sat Mar 13 14:24:02 GMT 2004None

ExecDemoSimple

public class ExecDemoSimple extends Object
ExecDemo shows how to execute an external program and read its output.

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] av)

		
		// Run the "notepad" program or a similar editor
		Process p = Runtime.getRuntime().exec("kwrite");

		p.waitFor();