FileInputStream stream =new FileInputStream("e:/jpj.txt"); byte[] bytes =new byte[1024]; int by =0; while ((len=stream.read(bytes))!=-1) { System.out.println(new String(bytes,0,len,"UTF-8")); }