Appends a string to the end of a file. A newline character ("\n") is added to the end of the string before it is written. Returns an error message if there is an exception, otherwise returns null.
(String string, String path)
| 2307 | is added to the end of the string before it is written. Returns an |
| 2308 | error message if there is an exception, otherwise returns null. */ |
| 2309 | public static String append(String string, String path) { |
| 2310 | return write(string+"\n", path, true); |
| 2311 | } |
| 2312 | |
| 2313 | private static String write(String string, String path, boolean append) { |
| 2314 | if (path==null || path.equals("")) { |