title: Find a Specific String in Excel File using Apache POI API
body: <p>Hye I'm new to Apache POI API for reading MS Office Documents but somehow good at Java. I just want to search a specific String from an Excel File! I'm doing in this way:</p>
  
  <pre><code>   private void processExcelFile(File f_path) throws Exception{
      File path=f_path;
  
      try{
  
          FileInputStream is=new FileInputStream(path);
  
          HSSFWorkbook wb = new HSSFWorkbook(is);
          HSSFSheet sheet = wb.getSheetAt(0);
  
          int rowcount_post=0;
          int rowcount_304=0;
  
                  for(Row row: sheet){
                      for(Cell cell : row){
  
                          if (cell.getCellType() == Cell.CELL_TYPE_STRING){
                                  if (cell.getRichStringCellValue().getString().trim().equals("GET")){
                                          rowcount_post=row.getRowNum();
  
                                          HSSFRow removingRow = sheet.getRow(rowcount_post);
  
                                              if (removingRow != null) {
                                              sheet.removeRow(removingRow);
                                              }
  
                                       try (FileOutputStream fileOut = new FileOutputStream("C:/juni.xls")) {
                                          wb.write(fileOut);
                                      }
                                      break;
                                  }
                                  else{
                                      System.out.print("NOT FOUND");
  
                                  }
  
  
                          break;
                          }
  
                      }
                  }
  
      }
      catch(Exception e){
             JOptionPane.showMessageDialog(this,e.getMessage(),"Error",JOptionPane.ERROR_MESSAGE);
      }
  }
  </code></pre>
  
  <p>All is working fine! Except that I have a Web Generated Log file. So I have to search it for some Strings and then I have to delete the line containing that string.
  The problem is that it only works for the Excel Files I'm creating by my hand but not for computer generated(AUTOMATIC LOG FILE) file. Suppose that I have to search a string "POST" it will only find in the file generated by me but not in the file generated by the website. Is it any Encoding problem I mean the text encoded or whatever!
   Please suggest me a solution for this Thanks in advance!
  (SORRY FOR BAD ENGLISH I HAVE BEEN TRYING FOR THE SOLUTION SINCE LAST 10 HOURS)</p>