标签:lin exception 输出 arraylist error leo buffere iter OLE
class shuchuwenjian {
public static boolean shuchu(ArrayList<String> ayyay, String wenjianname){
try {
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter
(new FileOutputStream(new File(wenjianname)),"UTF-8"));
for (String name : ayyay) {
bw.write(name+"\n");
bw.newLine();
}
bw.close();
} catch (Exception e) {
System.err.println("write errors :" + e);
}
File wenjian=new File(wenjianname);
return wenjian.exists();
}
}
标签:lin exception 输出 arraylist error leo buffere iter OLE
原文地址:https://www.cnblogs.com/tensorflowandroid/p/12651257.html