groovy的IO操作--真是丧心病狂
//groovy用it表InputStreamdef targetFile=new File("build.gradle")def buffer=new byte[1024]def hasReadtargetFile.withInputStream{ while((hasRead=it.read(buffer))!=-1) println(new String(buffer