MCPcopy Create free account
hub / github.com/Card-Forge/forge / writeFile

Method writeFile

forge-core/src/main/java/forge/util/FileUtil.java:126–128  ·  view source on GitHub ↗
(String filename, String text)

Source from the content-addressed store, hash-verified

124 }
125
126 public static void writeFile(String filename, String text) {
127 FileUtil.writeFile(new File(filename), text);
128 }
129
130 public static void writeFile(File file, String text) {
131 try (PrintWriter p = new PrintWriter(file)) {

Callers 7

checkForUpdatesMethod · 0.95
initForgeMethod · 0.95
setLandscapeModeMethod · 0.95
writeDeckMethod · 0.95
setLandscapeModeMethod · 0.95
saveMethod · 0.95
uploadMethod · 0.95

Calls 1

printMethod · 0.80

Tested by

no test coverage detected