java IO Nio 文件拷贝工具类Files

public static void main(String[] args) throws Exception {
		Files.copy(Paths.get("file/text.txt"), new FileOutputStream("nio.txt"));
	}

Files类具体使用方法详解

posted @ 2017-04-18 11:23  *小嘻嘻*  阅读(468)  评论(0编辑  收藏  举报