System.out.println("结束了");
String path="F:/text.txt";
File file=new File(path);
if(!file.exists())
file.createNewFile();
FileOutputStream out=new FileOutputStream(file,false); //如果追加方式用true
for (int i = 0; i < questionLength; i++) {
// 对问题进行预处理
out.write((questions.get(i) + "\n").getBytes("utf-8"));
out.write((processedQuestions[i] + "\n").getBytes("utf-8"));
out.write((answers.get(i) + "\n").getBytes("utf-8"));
}
out.close();
String path="F:/text.txt";
File file=new File(path);
if(!file.exists())
file.createNewFile();
FileOutputStream out=new FileOutputStream(file,false); //如果追加方式用true
for (int i = 0; i < questionLength; i++) {
// 对问题进行预处理
out.write((questions.get(i) + "\n").getBytes("utf-8"));
out.write((processedQuestions[i] + "\n").getBytes("utf-8"));
out.write((answers.get(i) + "\n").getBytes("utf-8"));
}
out.close();