(File f, Object c)
| 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)); |