public class codingTest {
public static void main(String[] args) throws Exception{
InputStream in = new FileInputStream("outputStream.txt");
int len = -1;
byte[] b = new byte[1024];
while((len = in.read(b)) != -1){
System.out.println(new String(b,0,len));
}
}
}作者: 葛雨龙 时间: 2011-11-7 22:56
转换流来操作