public static void stringToFile(String path, String str) {
try {
FileWriter fw = new FileWriter(path);
fw.flush();
fw.write(str);
fw.close();
} catch (Exception e) {
e.printStackTrace();
}
}
Android中将String字符写入到txt文件中。
最新推荐文章于 2024-03-30 07:45:00 发布