String filePath ="C:/Users/xzw/Desktop/工作文档/12月/13号/sys.txt"; try { FileInputStream fileInputStream = new FileInputStream(filePath); byte[] bytes = new byte[fileInputStream.available()]; fileInputStream.read(bytes); String s = new String(bytes); fileInputStream.close(); System.out.println(s); } catch (Exception e) { e.printStackTrace(); }
年轻人加油,多写多理解,写多了就熟悉了,累计的多,慢慢的就有体系的概念了
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)