public static boolean readConfig(String fileName,int nodeid) {
		System.out.println("Reading config for"+nodeid);
		nodeID=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, ",");
					int nodeID=Integer.parseInt((String) st.nextElement());
					String address=(String)st.nextElement();
					int portNumber=Integer.parseInt((String) st.nextElement());	
					NodeDetails nodeObj=new NodeDetails(nodeID, portNumber, address);
					mapNodes.put(nodeID,nodeObj);
					mapNodesByAddress.put(address+String.valueOf(portNumber),nodeObj);
					nodesCount++;
				}
				line = bReader.readLine();
				if(line!=null && line.length()==0)
					break;
				}
			
			totalNodes=nodesCount;
			//System.out.println("Total Nodes"+totalNodes);
			//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;
	}