public static void save(GameData gD, File f)
	{
		DataFile dF = new DataFile();
		try
		{
			
			f.createNewFile();
			Main.currentGame.dir = f.getAbsolutePath();
			FileOutputStream fileoutputstream = new FileOutputStream(f);
			
			dF.setProperty("mode", gD.mode + "");
			dF.store(fileoutputstream, "Data File");
			fileoutputstream.close();
			



		}
		catch(Exception ioexception)
		{
			ioexception.printStackTrace();
		}

	}