public static void main(String[] args) {
    try {
      Properties props = FileUtil.loadProps();
      if (props == null) return;

      String filePath = props.getProperty("FILE_PATH");
      // String filePath = "c:\\temp\\workdir\\java.txt";
      Set<Integer> ids = null;
      if (args.length == 0) {
        ids = extract(filePath);
        FileUtil.writeIntSetToFile(ids, "allIds.txt");
      }
      Set<Integer> ids1 = FileUtil.readFromFileAsSet(ConfigUtil.getInputStream("allIds.txt"));
      List<String> code = getAllCode(ids1, filePath);
      FileUtil.writeListToFile(code, "allCode.txt");
    } catch (Exception e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
  }