public static ArrayList<Course> readEnrollment(
			ArrayList<Course> courseList, ArrayList<Student> studentList,
			String enrollmentFile) {
		File stFile;
		Scanner fileScanner;
		try {
			stFile = new File(enrollmentFile);
			fileScanner = new Scanner(stFile);
			fileScanner.useDelimiter("\n");

			// Discard the header record
			fileScanner.next();

			while (fileScanner.hasNext()) {
				String enrollmentLine = fileScanner.next();
				// Remove the end of line characters
				enrollmentLine = enrollmentLine.replace("\n", "").replace("\r",
						"");

				// 0 StudentId
				// 1 ENROLLED/WAITLIST
				// 2 CourseOfferingID
				List<String> memberListString = Arrays.asList(enrollmentLine
						.split(","));

				// Lets find the course offering
				for (Course currentCourse : courseList) {
					for (CourseOffering currentOffering : currentCourse
							.getCourseOfferings()) {
						if (currentOffering.getCourseOfferingID().compareTo(
								memberListString.get(2)) == 0) {

							// Now lets find the student
							for (Student currentStudent : studentList) {
								if (currentStudent.getID() == Integer
										.parseInt(memberListString.get(0))) {
									// Found the student and the offering. Need
									// to determine if we are enrolling or
									// waitlisting
									if (memberListString.get(1).compareTo(
											"ENROLLED") == 0)
										currentOffering.enrollStudent(
												currentStudent, false);
									else
										currentOffering.enrollStudent(
												currentStudent, true);
								}
							}

						}
					}
				}

			}
			fileScanner.close();
		} catch (FileNotFoundException e) {
			System.out.println("Warning - unable to locate registration file:" + enrollmentFile);
			System.out.println("First time using the system will see this warning.");
		}

		return courseList;
	}