public class T1 {
public static void main(String[] args)throws Exception{
Path path = Paths.get("/Users/TT/test.txt");
byte[] data = Files.readAllBytes(path);
String result =new String(data);
System.out.println("测试"+result);
}
}
public class T1 {
public static void main(String[] args)throws Exception{
Path path = Paths.get("/Users/TT/test.txt");
byte[] data = Files.readAllBytes(path);
String result =new String(data);
System.out.println("测试"+result);
}
}