@Override
	public void uploadAttendance(Scanner sn) {
		System.out
				.println("You can enter attendance from a barcode scanned CSV file");
		System.out.println("Please enter the file name");
		String csvFile = sn.next();
		BufferedReader br = null;
		String line = "";
		String cvsSplitBy = ",";
		String[] headers;
		String studentID = "";
		AttendanceEnum attEnum = null;

		try {
			br = new BufferedReader(new FileReader(csvFile));
			line = br.readLine();
			headers = line.split(cvsSplitBy);
			while ((line = br.readLine()) != null) {

				// use comma as separator
				String[] values = line.split(cvsSplitBy);
				values[0] = studentID;

				switch (values[1].toUpperCase()) {
				case "PRESENT":
					attEnum = AttendanceEnum.PRESENT;
					break;
				case "ABSENT":
					attEnum = AttendanceEnum.ABSENT;
					break;
				case "MV":
					attEnum = AttendanceEnum.MV;
				}
				// From here we can pass studentID & attEnum to a session
				// dictionary for attendance
			}

		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} finally {
			if (br != null) {
				try {
					br.close();
				} catch (IOException e) {
					e.printStackTrace();
				}
			}
		}
	}