//从文件夹里面获取数据标签:文件,读取,StringBuilder,fileName,内容,stringBuilder,line,String From: https://www.cnblogs.com/YCL-/p/16779505.html
String fileName = "C:\\Users\\Administrator\\Desktop\\启奥接口成功返回.txt";
//一行一行读取
List<String> lines = Files.readAllLines(Paths.get(fileName), StandardCharsets.UTF_8);
StringBuilder stringBuilder = new StringBuilder();
for (String line : lines) {
stringBuilder.append(line);
}