public static boolean updateFile(String str)
{
str =
boolean blg = false;
try {
BufferedWriter bw = new BufferedWriter(new FileWriter(
StringBuilder sb = new StringBuilder(
sb
String a = sb
byte[] b = (a)
// 寫入文件
bw
bw
} catch (IOException e) {
// TODO Auto
e
}
return blg ;
}
From:http://tw.wingwit.com/Article/program/Java/hx/201311/26772.html