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

Method saveString

ij/src/main/java/ij/IJ.java:2302–2304  ·  view source on GitHub ↗

Saves a string as a file. Displays a file save dialog if 'path' is null or blank. Returns an error message if there is an exception, otherwise returns null.

(String string, String path)

Source from the content-addressed store, hash-verified

2300 'path' is null or blank. Returns an error message
2301 if there is an exception, otherwise returns null. */
2302 public static String saveString(String string, String path) {
2303 return write(string, path, false);
2304 }
2305
2306 /** Appends a string to the end of a file. A newline character ("\n")
2307 is added to the end of the string before it is written. Returns an

Callers 8

doFileMethod · 0.95
runMethod · 0.95
saveMethod · 0.95
saveStartupMacroMethod · 0.95
runMethod · 0.95
saveMethod · 0.95
showDialogMethod · 0.95
actionPerformedMethod · 0.95

Calls 1

writeMethod · 0.95

Tested by

no test coverage detected