日期:2014-05-20  浏览次数:20649 次

javaIO问题

 in = new FileInputStream(file)
            int tempbyte;
            while ((tempbyte = in.read()) != -1) {
                System.out.write(tempbyte);
中的tempbyte代表是什么
字节字符中都有这个小变量究竟是什么意思啊
------解决方案--------------------
in.read()一次读一个字节存放到temptyte啊,然后输出啊
------解决方案--------------------
代表每次读取返回的读取的字节数 ,如果等于-1 表示流已经读取完