public static void stripFileFromWraps(File file, String[] wraps)
          throws FileNotFoundException, IOException, Exception {
    
    if (wraps == null || wraps.length == 0) return;
    
    List<String> lines = new ArrayList<String>();
    BufferedReader reader = new BufferedReader(new FileReader(file));
    try {
      String line = null;
      while ((line = reader.readLine()) != null) {
        lines.add(line);
      }
      for (int i = 0; i < wraps.length; i++) {
        lines = stripFromWrap(lines, wraps[i]);
      }
    } finally {
      if (reader != null) reader.close();
    }
    
    BufferedWriter writer = 
            new BufferedWriter(new FileWriter(file));
    try {
      for (int i = 0; i < lines.size(); i++) {
        writer.write(lines.get(i) + "\n");
      }
      writer.flush();
    } finally {
      if (writer != null) writer.close();
    }
  }