public static void save()//Method that saves to a file with the path name given
	{
		String output ="savedata/"+JokemonDriver.getVersion()+".inventory";

		try
		{
			PrintWriter fout=new PrintWriter(new FileWriter(output));

			if(JokemonDriver.getVersion().equals("Peaches"))
				fout.println("PDAE"+JokemonDriver.idString);
			else
				fout.println("CDAE"+JokemonDriver.idString);

			fout.println(fullInventory.size());

            for (Item aFullInventory : fullInventory) {
                if (aFullInventory.type == Item.Type.TM || aFullInventory.type == Item.Type.HM) {
                    fout.println("" + aFullInventory.type);
                    fout.println("" + aFullInventory.amount);
                    fout.println("" + aFullInventory.mNo);
                } else {
                    fout.println("" + aFullInventory.type);
                    fout.println("" + aFullInventory.amount);
                }
            }
			fout.println(money);
			fout.close();

			JokemonDriver.saveEncryptionKey(output,JokemonDriver.encrypt(output));
			System.out.println("Inventory saved.");
		}
		catch(Exception ignored){}
	}