这里面包含了一百多个JAVA源文件

源代码在线查看: e090. reading output from a command.txt

软件大小: 551 K
上传用户: maple_78
关键词: JAVA
下载地址: 免注册下载 普通下载 VIP

相关代码

				try {
				        // Execute command
				        String command = "ls";
				        Process child = Runtime.getRuntime().exec(command);
				    
				        // Get the input stream and read from it
				        InputStream in = child.getInputStream();
				        int c;
				        while ((c = in.read()) != -1) {
				            process((char)c);
				        }
				        in.close();
				    } catch (IOException e) {
				    }
							

相关资源