MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / readFile

Method readFile

src/main/java/fielded/ServerSupport.java:126–139  ·  view source on GitHub ↗
(String s)

Source from the content-addressed store, hash-verified

124 }
125 return line;
126
127 } catch (IOException e) {
128 e.printStackTrace();
129 }
130 return "";
131 }
132
133// static public void openEditor() throws IOException {
134// switch (Main.os) {
135// case linux:
136// try {
137// new ProcessBuilder("/usr/bin/google-chrome", "--app=http://localhost:"+ServerSupport.webserverPort+"/init")
138// .redirectOutput(ProcessBuilder.Redirect.to(File.createTempFile("field", "browseroutput")))
139// .redirectError(File.createTempFile("field", "browsererror")).start();
140// } catch (Throwable t) {
141// t.printStackTrace();
142// }

Callers 1

ServerSupportMethod · 0.95

Calls 1

readLineMethod · 0.45

Tested by

no test coverage detected