把String内容输出到Txt文件里
String str = "hello world";
try {
FileWriter fw = new FileWriter(PATH + "/aa.txt");
fw.flush();
fw.write(str);
fw.close();
} catch (Exception e) {
e.printStackTrace();
}
摘自 oldfeel
补充:移动开发 , Android ,