Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- KEY=VALUE
- 1=value
- 2=value
- 3=value
- public void save(HashMap<Integer, String> map) {
- try {
- File zone1 = new File("zones/zone1");
- FileOutputStream fileOut = new FileOutputStream(zone1);
- PrintWriter print = new PrintWriter(fileOut);
- for (Map.Entry<Integer, String> m : map.entrySet()) {
- print.println(m.getKey() + "=" + m.getValue());
- }
- print.flush();
- print.close();
- print.close();
- } catch (Exception e) {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement