public void save(){
	try(PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter("users.csv", true)))) {
		String s = "";
		s = h.getName() + "," + h.getEW() + "," + h.getEA() + "," + h.getLevel()+ "," +h.getXP() + "," + h.getGold() + "," + h.getStr() + "," + h.getDex() +","+h.getIntell()+ ",";
		String eqs = "";
		for (int i = 0; i < h.getEquipment().size();i++)
		    eqs = eqs + h.getEquipment().get(i).getEquipName()+";";
		if (eqs.length() > 1){
		    eqs = eqs.substring(0,eqs.length()-1);
		}
		String its = "";
		for (Items it:h.getInventory())
		    its = its + it.getName()+";";
		if (its.length() > 1)
		    its = its.substring(0,its.length()-1);
		String sps = "";
		for (Spells sp:h.getSpell())
		    sps = sps + sp.getName()+";";
		if (sps.length() > 1)
		    sps = sps.substring(0,sps.length()-1);
		s=s+eqs+","+its+","+sps;
	        out.println(s);
		out.close();
	    }catch (IOException e) {
	//exception handling left as an exercise for the reader
	}
    
	try(PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter("users.txt", true)))) {
		String s = "";
		s = h.getName();
		out.println(s);
		out.close();
	    }catch (IOException e) {
	    //exception handling left as an exercise for the reader
	}
    }