时间:2020-10-11 10:47:02 | 栏目:Android代码 | 点击:次
如下所示:
public static void stringTxt(String str){
try {
FileWriter fw = new FileWriter("/sdcard/aaa" + "/cmd.txt");//SD卡中的路径
fw.flush();
fw.write(str);
fw.close();
} catch (Exception e) {
e.printStackTrace();
}
}