public Object[] readFile(String filePath, int fileType) 
        {
		Object[] objects = { null, null };
		Vector strings = new Vector();
		File file = new File(filePath);
		
		
		// write to file of type typeCode
		switch(fileType) 
                {
			case FileHandler.TEXT_FILE:
				try 
                                {
					BufferedReader in = new BufferedReader(new FileReader(file));
					String line = in.readLine();
					while(line != null)
                                        {
					   strings.add(line);
					   line = in.readLine();
					}
					in.close();
					objects[1] = strings; // put Vector in object array
				} 
                                catch(IOException ioe) 
                                {
					objects[0] = ioe.getMessage();
				}
				break;
			
			default:
				objects[0] = "fileType flag set to non-text code. " +
					   "TextFileHandler#readFile operation is aborted.";
		}
				
		return objects;
	}