MCPcopy Index your code
hub / github.com/benfry/processing4 / loadFile

Method loadFile

app/src/processing/app/Util.java:191–199  ·  view source on GitHub ↗

Grab the contents of a file as a string. Connects lines with \n, even if the input file used \r\n.

(File file)

Source from the content-addressed store, hash-verified

189 * even if the input file used \r\n.
190 */
191 static public String loadFile(File file) {
192 if (file != null && file.exists()) {
193 String[] contents = PApplet.loadStrings(file);
194 if (contents != null) {
195 return PApplet.join(contents, "\n");
196 }
197 }
198 return null;
199 }
200
201
202 /**

Callers 8

loadMethod · 0.95
loadStringMethod · 0.95
initMethod · 0.95
getCurrentThemeMethod · 0.95
getDefaultThemeMethod · 0.95
ThemeSetMethod · 0.95
renderMonoImageMethod · 0.95
exportApplicationMethod · 0.95

Calls 2

loadStringsMethod · 0.95
joinMethod · 0.95

Tested by

no test coverage detected