public static void saveEvents (Box b)
	{
		display.repaint();
		Month m = b.getMonthStored();
		Day d = b.getDayStored();

		File f2 = new File (homeFile.toString()+"/"+m.getName());
		f2.mkdir();
		File f = new File (f2.toString()+"/"+d.getNum()+".cal") ;
		BufferedWriter out;
		if(f.exists())//if the text file for that number already exits
		{
			try{
			 out = new BufferedWriter(new FileWriter(f.toString(), true));
			}
			catch(Exception e)
			{
				out=null;
			}
			
		}
		else//if the textfile for that number does not exist
		{
			try{
			FileWriter fstream = new FileWriter (f.toString());
			out = new BufferedWriter(fstream);
				
			}
			catch (Exception e)
			{
				out=null;
			}
		}
		
		writeMethod(out,b);		
		

	
	}