FileDocCategorySizeDatePackage
ExecDemoSimple.javaAPI DocExample296Sun Apr 22 17:16:26 BST 2001None

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();