private static void writeMethod(BufferedWriter out, Box b)
	{
		Day d = b.getDayStored();
		ArrayList <Event> list = d.getEvents();
		String s1 = "$%$%$!~";//identify space between event attributes
		String s2 = "!@#$*$%";//identify the end of a day
		try{

			Event e = list.get(list.size()-1);
			if(e.getName()!=null)
				out.write(e.getName());//write the name
			if(e.getLocation()!=null)
				out.write(s1+e.getLocation());//write the location
			if(e.getStartTime()!=null)
				out.write(s1+e.getStartTime());//write the start time
			if(e.getEndTime()!=null)
				out.write(s1+e.getEndTime());//write the end time
			if(e.getDescription()!=null)
				out.write(s1+e.getDescription());
			
			out.newLine();
		
		out.write(s2);
		out.newLine();
		out.close();

		}
		catch(Exception e)
		{
			
		}
		
	}