@Override
	protected PedEntry readNext() {
		try {
			if (reader.ready()) {
				line = reader.readLine(); // Read a line (only if needed)
				if (line != null) {
					lineNum++;
					try {
						PedEntry pedEntry = parseLine(line);
						if (pedEntry != null) return pedEntry;
					} catch (Throwable t) {
						throw new RuntimeException("Error parsing line from PED/TFAM file:\n\tFile name : '" + fileName + "'\n\tLine number : " + lineNum + "\n\tLine: '" + line + "'", t);
					};

				}
			}
		} catch (IOException e) {
			return null;
		}

		return null;
	}