public Object[] readFile(String filePath, int fileType) {
		Object[] objects = { null, null };
		Vector serializedObjects = new Vector();
		File file = new File(filePath);
		
		// write to file of type typeCode
		switch(fileType) {
			case FileHandler.BIN_FILE:
//				try {
			objects[0] = "Standard binary files are not supported. " +
				   "Read file operation is aborted.";
//				} catch(Exception e) {
//					objects[0] = e.toString();
//				}
//				break;
				
			case FileHandler.OBJ_FILE:
				try {
					// serialized objects only
					ObjectInputStream in = new ObjectInputStream(
						new FileInputStream(file));
					
					// Read the individual objects sequentially.
					Object obj = in.readObject();  // objects are written as type Object; cast required on retrieval
					while( obj != null ) {
						serializedObjects.add(obj);
						obj = in.readObject();
					}
					in.close();
				} catch(EOFException eof) {
					// end of file, do nothing
				} catch(Exception e) {
					objects[0] = "Error in readFile(): " + e.toString();
				}
				break;
		}
		// be sure to repopulate array being returned
		objects[1] = serializedObjects;
		return objects;
	}