把向txt资料输出信息

把向txt文件输出信息第一步:FileWriter out第二步:out new FileWriter(log.text)第四步:out.write(

把向txt文件输出信息



第一步:FileWriter out;
第二步:out = new FileWriter("log.text");
第四步:out.write("断点1\r\n");
第五步:out.flush();
第六步:在外面加上try{}catch{};