📅  最后修改于: 2022-03-11 14:52:24.189000             🧑  作者: Mango
public String readFile(String filePath) {
String result = "";
try {
result = Files.readString(Paths.get(filePath));
} catch (IOException e) {
e.printStackTrace();
}
return result;
}