public static void exportSegment(){
        BufferedWriter file =null; 
        String nameFile = "UsiExportZone";
        try{
            File dir = new File("export");
            dir.mkdirs();
            FileWriter fileWriter = new FileWriter("export\\" + nameFile + ".csv");
            file = new BufferedWriter(fileWriter);
            file.write("Id : ");
            file.write("Nom : ");
            file.write("Description : ");
            file.write("Responsable : ");
            file.write("Responsable suppléant : ");
            file.write("Liste de quartier : ");
            file.newLine();
            for(Segment s : data.IHM.DataIHM.getListAllSegment()){  
                if(s.getName().equals("__Aucun") == false){
                    file.write(Integer.toString(s.getId()));
                    file.write(" : ");
                    file.write(objectValue(s.getName()));
                    file.write(" : ");
                    file.write(objectValue(s.getDescription()));
                    file.write(" : ");
                    file.write(objectValue(s.getResponsible()));
                    file.write(" : ");
                    file.write(objectValue(s.getResponsibledeputy()));
                    file.write(" : ");
                    for(myObject.Process p : s.getListProcess()){
                        file.write(objectValue(p));
                        file.write(";");
                    }
                    file.newLine();
                }
            }
        }catch(IOException err){
            err.toString();
        }
        finally{
            try {
                if(file != null)
                    file.close();
            } catch (IOException err) {
                err.getMessage();
            }
        }
    }