public void getSavedFiles(String file) {
		try{
			int duplicate = 1;
			String textLine = "";
			Scanner fileScanner = new Scanner(new File(file));

			while (fileScanner.hasNextLine()) {
				textLine = fileScanner.nextLine() + ",";	//add a comma to the end to make parsing easier
				int count = 0;				//count the number of components on each line
				for (int i = 0; i < textLine.length(); i++) {
					if (textLine.charAt(i) == ',') {
						count++;
					}
				}
				if (count == 6) {	//line contains a plant file
					String[] parameters = new String[count];	//create array to store values, size set to number of components in the String
					count = 0;				//zero the counter so we can use it to place elements in the parameter array
					int beg = 0;				//indicates where to start our substring
					for (int i = 0; i < textLine.length(); i++) {
						if (textLine.charAt(i) == ',') {					//break up the text line using commas
							parameters[count] = textLine.substring(beg, i);		//add the substring to the parameter array
							beg = i + 2;						//find the start of the next substring
							count++;						//increase the counter for the parameter array
						}
					}
					Entry newEntry = new Entry(parameters);	//create a new Entry using the array of substrings for the text line
					
					textLine = fileScanner.nextLine();		//this line says "NOTE:"
					String notes = fileScanner.nextLine();	//start of the notes
					textLine = fileScanner.nextLine();
					while (!textLine.equals("</NOTES>")) {	//continue until we reach the end of the notes
						notes += "\n" + textLine;				//add the line break for each new line
						textLine = fileScanner.nextLine();
					}
					newEntry.setNotes(notes);				//set the notes for the entry
					textLine = fileScanner.nextLine();		//this line will be blank

					int a = library.getEntries().size();	//this will be the position in the Library where the Entry will be added
					duplicate = library.addFromFile(newEntry, duplicate); //duplicate will tell us if we should add repeated files or not	
					int b = library.getEntries().size();	//if the add was successful, the size of the library should have increased by one
					if ((b - a) == 1){ 						//if an entry was added
						setOrderedFalse(); 					//the list may no longer be sorted
					}
				}
			}
			fileScanner.close();
		}
		catch (FileNotFoundException efile) {}
		library.sortString(0);
		fillDisplay();
	}//end getSavedFiles