public void readMagicItem() {

		// creating the list manager, classified as listMan1

		ListMan listMan1 = new ListMan();
		listMan1.setName("Magic Items");
		listMan1.setDesc("Enchanted Items that seem both cool and scary.");

		final String fileName = "magicItems.txt";

		readmagicItemsFromFileToList(fileName, listMan1);

		// Managing the array for to hold the items. The array is called items

		items = new ListItem[listMan1.getLength()];

		// .getLength method can be found in listMan.
		readMagicItemsFromFileToArray(fileName, items);

		// Displaying the items in the array on the command line. Using a for
		// loop

		// Selection Sort To sort the items,

		for (int pass = 0; pass < items.length - 1; pass++) {
			// System.out.println(pass + "-" + items[pass]);
			int indexOfTarget = pass;
			int indexOfSmallest = indexOfTarget;
			for (int j = indexOfTarget + 1; j < items.length; j++) {
				if (items[j].getName().compareToIgnoreCase(
						items[indexOfSmallest].getName()) < 0) {
					indexOfSmallest = j;
				}
			}
			ListItem temp = items[indexOfTarget];
			items[indexOfTarget] = items[indexOfSmallest];
			items[indexOfSmallest] = temp;
		}

	}