java一行代码读取文件
导入包 java8的
import java.io.IOException;
import static java.nio.file.Paths.*;
import static java.nio.file.Files.*;
调用
System.out.println(new String(readAllBytes(get("文件"))));
导入包 java8的
import java.io.IOException;
import static java.nio.file.Paths.*;
import static java.nio.file.Files.*;
调用
System.out.println(new String(readAllBytes(get("文件"))));