나는 비지 박스의 버전을 반환 oupout 터미널에서의 첫 번째 라인을 실행이 코드버퍼링 된 리더에서 처음 5 문자를 읽는 방법은 무엇입니까?
Process p =Runtime.getRuntime().exec("busybox");
InputStream a = p.getInputStream();
InputStreamReader read = new InputStreamReader(a);
BufferedReader in = new BufferedReader(read);
있습니다. 내가하는 것처럼 처음 5자를 예로 들면?
버퍼링 된 리더에서 처음 5자를 읽으시겠습니까? –
예 .............. –
@ MariocciRossini-subString (int startposition, int endposition)을 사용하면 ... 이것이 도움이된다고 생각합니다. – FarhaSameer786