public static void main(String[] args){ File file = new File("D:"+File.separator+"1.eml"); InputStream in = null; try { in = new FileInputStream(file); byte b[]=new byte[(int)file.length()]; in.close(); } catch (IOException e) { e.printStackTrace(); return; } }
如上图代码.我将D盘下的某文件读出并创建一个大小对应的byte[],如何将文件放入byte中转十六进制并读出打印?十万火急急求大神