MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / append

Method append

ij/src/main/java/ij/IJ.java:2309–2311  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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("")) {

Callers 1

doFileMethod · 0.95

Calls 1

writeMethod · 0.95

Tested by

no test coverage detected