MCPcopy Index your code
hub / github.com/ForOhForError/Yet-Another-Magic-Card-Recognizer / writeOut

Method writeOut

src/SavedConfig.java:82–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80 }
81
82 private static void writeOut()
83 {
84 File f = new File("config.txt");
85 FileOutputStream out;
86 try {
87 out = new FileOutputStream(f);
88 out.write(("path:"+PATH+System.lineSeparator()).getBytes());
89 out.write(("debug:"+DEBUG+System.lineSeparator()).getBytes());
90 out.flush();
91 out.close();
92 } catch (IOException e) {
93 e.printStackTrace();
94 }
95 }
96
97 public static String getDecksPath(){
98 return PATH+"decks"+File.separator;

Callers 1

initMethod · 0.95

Calls 2

closeMethod · 0.80
writeMethod · 0.65

Tested by

no test coverage detected