- public static void write(String path, String content) {
- try {
- File f = new File(path);
- BufferedWriter output = new BufferedWriter(new FileWriter(f,true));
- output.write(content+"\\r\\n");
- output.close();
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
- //该片段来自于http://www.codesnippet.cn/detail/160520149577.html
来源: http://www.codesnippet.cn/detail/160520149577.html