MCPcopy
hub / github.com/arduino/Arduino / loadFile

Method loadFile

arduino-core/src/processing/app/BaseNoGui.java:617–621  ·  view source on GitHub ↗

Grab the contents of a file as a string.

(File file)

Source from the content-addressed store, hash-verified

615 * Grab the contents of a file as a string.
616 */
617 static public String loadFile(File file) throws IOException {
618 String[] contents = PApplet.loadStrings(file);
619 if (contents == null) return null;
620 return PApplet.join(contents, "\n");
621 }
622
623 public static void checkInstallationFolder() {
624 if (isIDEInstalledIntoSettingsFolder()) {

Callers 2

loadMethod · 0.95
loadFileMethod · 0.95

Calls 2

loadStringsMethod · 0.95
joinMethod · 0.95

Tested by

no test coverage detected