String path = "H:/data.txt";
File file = new File(path);
FileWriter fw = new FileWriter(path);
fw.write("要写入的数据");
fw.close();
转载于:https://my.oschina.net/wanghongkai/blog/534437
String path = "H:/data.txt";
File file = new File(path);
FileWriter fw = new FileWriter(path);
fw.write("要写入的数据");
fw.close();
转载于:https://my.oschina.net/wanghongkai/blog/534437