MCPcopy Index your code
hub / github.com/VolmitSoftware/Adapt / writeAll

Method writeAll

src/main/java/com/volmit/adapt/util/IO.java:323–328  ·  view source on GitHub ↗
(File f, Object c)

Source from the content-addressed store, hash-verified

321 }
322
323 public static void writeAll(File f, Object c) throws IOException {
324 f.getParentFile().mkdirs();
325 PrintWriter pw = new PrintWriter(new FileWriter(f));
326 pw.println(c.toString());
327 pw.close();
328 }
329
330 public static String readAll(File f) throws IOException {
331 BufferedReader bu = new BufferedReader(new FileReader(f));

Callers 8

getMethod · 0.95
getConfigMethod · 0.95
saveMethod · 0.95
saveMethod · 0.95
unSaveMethod · 0.95
saveMethod · 0.95
getMethod · 0.95
getConfigMethod · 0.95

Calls 2

closeMethod · 0.65
toStringMethod · 0.45

Tested by

no test coverage detected