MCPcopy Index your code
hub / github.com/processing/processing / loadFile

Method loadFile

app/src/processing/app/Util.java:154–158  ·  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

152 * even if the input file used \r\n.
153 */
154 static public String loadFile(File file) throws IOException {
155 String[] contents = PApplet.loadStrings(file);
156 if (contents == null) return null;
157 return PApplet.join(contents, "\n");
158 }
159
160
161 /**

Callers 1

loadMethod · 0.95

Calls 2

loadStringsMethod · 0.95
joinMethod · 0.95

Tested by

no test coverage detected