/** Dumps data to the file schedule_data.ser. */ public static void dumpConfigFile() { try { path.delete(); path.createNewFile(); FileOutputStream dumpConfig = new FileOutputStream(path); ObjectOutputStream fileStore = new ObjectOutputStream(dumpConfig); fileStore.writeObject(days); fileStore.writeObject(workers); fileStore.writeObject(schedule); fileStore.writeObject(HTMLGenerator.getTables()); fileStore.close(); dumpConfig.close(); System.out.println("Stored"); } catch (FileNotFoundException exception) { exception.printStackTrace(); } catch (IOException exception) { exception.printStackTrace(); } }