public static void main(String[] args) {
		TextFileHandler handler = new TextFileHandler();
		
		// Try to read a file that doesn't exist
		Object[] objects = handler.readFile("src/test.txt", FileHandler.TEXT_FILE);
		// Print error message
		if( objects[0] != null ) System.out.println(objects[0]);
		
		//Next write to a file
		String[] strings = {"Sentence 1", "Sentence 2"};
		String errorMessage = handler.writeFile("src/test.txt", strings,FileHandler.TEXT_FILE,false);
		if( errorMessage != null ) System.out.println(errorMessage);

		//Now read the text back in
		objects = handler.readFile("src/test.txt", FileHandler.TEXT_FILE);
		// Print error message
		if( objects[0] == null ) {
			Vector v = (Vector)objects[1];
			for(int i=0; i<v.size(); i++) {
				System.out.println(v.get(i));
			}
		} else {
			System.out.println(objects[0]);
		}
	}