摘要:
//直接将IO流转成字符串 InputStream in = new URL( "http://jakarta.apache.org" ).openStream(); try { System.out.println( IOUtils.toString( in ) ); } finally { IOUtils.closeQuietly(in); }//读取文本文件的所有行 File file = new File("/commons/io/project.properties"); List lines = FileUtils.readLines(fil 阅读全文