import java.io.*; public class FISDemo { public static void main(String args[]) { byte[] buf=new byte[2056]; try{ FileInputStream fileIn=new FileInputStream("e:/myjava/Hello.java"); 就是这行代码和下一行代码有点搞不懂,求大神解答 int bytes=fileIn.read(buf,0,2056); String str=new String(buf,0,bytes); System.out.println(str); }catch(Exception e){ e.printStackTrace( ); } } |