public void enrgOffre(String v_titre, String v_region, int v_exp, int v_salMin, int v_salMax, HashMap<Competence, CompType> tblComps) {
        try {
            int compsSize = tblComps.size();
            System.out.println("size" + tblComps.size());
            System.out.println(tblComps);
            String compstr = "";

            //for(Competence comp:c)
//            for(int i = 0; i < compsSize; i++){                
//                compstr += c.get(i).getNomComp() + m_compTypeDelim;
//                  System.out.println("compstr :" + compstr);
//                if(c.get(i).isObligatoire()) {
//                    compstr += "1";
//                }
//                else {
//                    compstr += "0";
//                }
//                if(i < compsSize - 1){
//                    compstr += m_compDelim;
//                }
//            }
            Iterator iter = tblComps.keySet().iterator();
            while (iter.hasNext()) {
                Competence key = (Competence) iter.next();
                compstr += key.getNomComp() + m_compTypeDelim;
                System.out.println("saved compstr :" + compstr);

                compstr += tblComps.get(key).getLibType() + m_compDelim;
            }
            
            if (compstr.length() > 0 && compstr.charAt(compstr.length() - 1)==m_compDelim) {
              compstr = compstr.substring(0, compstr.length()-1);
            } 

            String content = v_titre + m_itemDelim
                    + v_region + m_itemDelim
                    + v_exp + m_itemDelim
                    + v_salMin + m_itemDelim
                    + v_salMax + m_itemDelim + compstr;
            
            File file = new File(m_offreList);
            // if file doesnt exists, then create it
            if (!file.exists()) {
                file.createNewFile();
            }
            FileWriter fw = new FileWriter(file.getAbsoluteFile(), true);
            BufferedWriter bw = new BufferedWriter(fw);
            bw.write(content);
            bw.newLine();
            bw.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }