public static void main(String[] args) {
		Date date = new Date();
		Integer myInt = new Integer(5);
		Object[] objects = new Object[2];
		objects[0] = date;
		objects[1] = myInt;
		ObjectFileHandler handler = new ObjectFileHandler();
		
		// write some objects
		String errorMessage = handler.writeFile("src/text.out",objects,
								FileHandler.OBJ_FILE,false);

		if(errorMessage != null) System.out.println(errorMessage);
		
		// read them back in
		objects[0] = null; // reset everything
		objects[1] = null;
		Vector v = null; // reset vector to empty
		objects = handler.readFile("src/text.out",FileHandler.OBJ_FILE);
		if(objects[0] != null) {
			System.out.println("Read Problem: " + objects[0]);
			System.exit(1);
		}
		// else
		System.out.println("Reading objects back in....");
		v = (Vector)objects[1];
		for(int i=0; i < v.size(); i++)
			System.out.println(v.get(i));
	}