public static ArrayList<ElectionOption> importElectionOptions(String fileName) throws IOException, CorruptDataException {

		File file = new File(fileName);
		try {
			if (file.exists()) {
				FileReader fr = new FileReader(file);
				BufferedReader br = new BufferedReader(fr);

				String delimiter = br.readLine();

				ArrayList<ElectionOption> electionOptions = new ArrayList<ElectionOption>();
				String line;
				while ((line = br.readLine()) != null) {
					String[] parts = line.split(delimiter);
					int electionOptionId = Integer.parseInt(parts[0]);
					String name = parts[1];
					int partyId = Integer.parseInt(parts[2]);

					ElectionOption e = new ElectionOption(electionOptionId, name, partyId);
					electionOptions.add(e);
				}
				br.close();

				return electionOptions;
			} else {
				throw new IOException("File does not exist");
			}
		} catch (IOException e) {
			throw e;
		} catch (Exception e) {
			throw new CorruptDataException("Corrupted file");
		}
	}