public void generateFileOperations(int noOfOperations,int numberOfNodes) throws IOException
	{
	
            
            
            File operationFile = new File("OpFile.txt");
	       //File operationFile = new File("op1.txt");
	        
	            try
	            {
			 if(new File("OpFile.txt").exists())
                         {
                            new File("OpFile.txt").delete();      
                         }
		
                        operationFile.createNewFile();
                    } 
	            catch (IOException e)
	            {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
	       
	
	BufferedWriter out = new BufferedWriter(new FileWriter("OpFile.txt",true));
	
	//System.out.println("This is in the generation method");
	System.out.println("Number of nodes : " + numberOfNodes);
     
        
        double readCo=noOfOperations*numberOfNodes*0.6;
        
        int readCounter=(int)Math.ceil(readCo);
        System.out.println("No of read operation : "+readCounter);
        
        int writeCounter=(noOfOperations*numberOfNodes)-readCounter;
        System.out.println("No of write operation : "+writeCounter);
        
        
        Random randomGenerator=new Random();
        for(int a=0;a<numberOfNodes;a++)
        {
           // System.out.println("For node : "+a);
            int nodeId=a;
            
            for(int k=0;k<noOfOperations;k++)
            {
             //   System.out.println("operation "+k);
                int fileId=randomGenerator.nextInt(ReplicaMain.listOfFiles.size());
                String fileName=ReplicaMain.listOfFiles.get(fileId);
                
                int fileOp=randomGenerator.nextInt(2);
               // System.out.println("fileOp : "+fileOp +" readCounter : "+readCounter+" writeCounter : "+writeCounter);
                String readWrite=null;
                if(fileOp==0 && readCounter==0)
                {//   System.out.println("read are over");
                    fileOp=1;}
                if(fileOp==1 && writeCounter==0)
                {
                   // System.out.println("write are over");
                    fileOp=0;}
                
                
                
                if(fileOp==0)
                {
                    readWrite="read";
                    //System.out.println("fileOp=0");
                    readCounter--;
                }    
                else
                {
                    readWrite="write";
                    //System.out.println("fileOp=1");
                    writeCounter--;
                }
                    
                    
                     out.write(nodeId + " " + readWrite + " " + fileName);
                     out.flush();
                     System.out.println(nodeId + " " + readWrite + " " + fileName);
                     out.newLine();              
                }
                
            }
        }