public static boolean readTopology(String fileName,int nodeID){
		System.out.println("Reading config for"+nodeID);
		BufferedReader bReader = null;
		int nodesCount=0;
		try {
			bReader = new BufferedReader(new FileReader(fileName));
			String line = bReader.readLine();
			boolean firstLine=true;
			while(line!=null){
				if(firstLine){
					firstLine=false;
				}else{
					StringTokenizer st = new StringTokenizer(line, ",");
					//1.NODE ID
					int nodeIDLoop=Integer.parseInt((String) st.nextElement());
					//2.IP ADDRESS
					String address=(String)st.nextElement();
					//3.PORT NO
					int portNumber=Integer.parseInt((String) st.nextElement());	
					//4.DELAYFAIL 
					long delayFail=Long.parseLong((String) st.nextElement(),10);	
					//5.MYVOTES 
					int myVotes=Integer.parseInt((String) st.nextElement());
					//6.TOTALVOTES
					int totalVotes=Integer.parseInt((String) st.nextElement());
					//8.IS_COORDINATOR
					char isCoordinator=((String) st.nextElement()).charAt(0);
					//9.TOTALVOTES
					int opCount=Integer.parseInt((String) st.nextElement());
					NodeDetails nodeObj=new NodeDetails(nodeIDLoop, portNumber, address,delayFail,myVotes,totalVotes,isCoordinator,opCount);
					System.out.println("Filling "+nodeIDLoop);
					mapNodes.put(nodeIDLoop,nodeObj);
					mapNodesByAddress.put(address+String.valueOf(portNumber),nodeObj);
					nodesCount++;
					if(isCoordinator=='Y')
						coordinatorNode=nodeObj;
				}
				line = bReader.readLine();
				if(line!=null && line.length()==0)
					break;
			}
			totalNodes=nodesCount;
			//All the Node info has been filled
			if(mapNodes.containsKey(nodeID))
				currentNode=mapNodes.get(nodeID);
			else{
				System.out.println("*********************************************************");
				System.out.println("Please Supply the correct Process ID"+nodeID);
				System.out.println("*********************************************************");
				System.out.println("Exiting");
				return false;
			}
		}catch (IOException e) {
			e.printStackTrace();
			System.out.println("*********************************************************");
			System.out.println("Exception in reading config"+e.toString());
			return false;
		} finally {
			try {
				if (bReader != null)
					bReader.close();
			} catch (IOException ex) {
				ex.printStackTrace();
			}

		}
		return true;
	}