String strDistrictName = "fengyuzaitu";
try {
FileOutputStream fos = new FileOutputStream("/storage/sdcard0/Android/data/test.txt");
OutputStreamWriter osw = new OutputStreamWriter(fos, "gb2312");
osw.write(strDistrictName);
osw.flush();
} catch (Exception e) {
e.printStackTrace();
}
本文轉自fengyuzaitu 51CTO部落格,原文連結:http://blog.51cto.com/fengyuzaitu/1609514,如需轉載請自行聯系原作者