private void save(){
        System.out.println("Saving files...");
        PrintWriter out = null;
        try{
            File file = new File("users.txt");
            file.createNewFile();
            FileOutputStream output = new FileOutputStream(file.getPath());
            System.out.println("FileOutputStream path set to "+file.getPath());
            out = new PrintWriter(
                new BufferedWriter(
                    new OutputStreamWriter(output, "UTF-8")));
        } catch (Exception e) { System.out.println(e); }
        for (String name : users.keySet()){ //saving each user account into
            if (!name.equalsIgnoreCase("Admin")){ //don't want to save the default admin account
                System.out.println("Saving user to key "+name);
                out.println(name); //name key to open
                out.println("{");  //then open bracket for holding the attributes
                UserAccount user = users.get(name); //getting the account...
                out.println(user.getName()); //name first
                out.println(""+user.getID()); //then id
                out.println(user.getPassword()); //then password
                if (user.getIsAdmin()) out.println("1"); else out.println("0"); //admin status: 1 for true, 0 for false
                if (user.getIsBanned()) out.println("1"); else out.println("0"); //ban status: 1 for true, 0 for false
                out.println("}");  //close the user entry
            }
        }
        out.flush();
        out.close();
        try{
            File file = new File("rooms.txt");
            file.createNewFile();
            FileOutputStream output = new FileOutputStream(file.getPath());
            System.out.println("FileOutputStream path set to "+file.getPath());
            out = new PrintWriter(
                new BufferedWriter(
                    new OutputStreamWriter(output, "UTF-8")));
        } catch (Exception e) { System.out.println(e); }
        for (String name : chatRooms.keySet()){ //saving each chat room info
            if (!name.equalsIgnoreCase("Main")) //don't want to save the default main room
            {
                System.out.println("Saving room to key "+name);
                out.println(name); //name key to open
                out.println("{");  //then open bracket for holding the attributes
                ChatServerChatRoom room = chatRooms.get(name);
                out.println(room.getName()); //name first
                out.println(""+room.getID()); //then id
                out.println("}");  //close the user entry
            }
        }
        out.flush();
        out.close();
    }