public void addLine (String filename , String newLigne){
        
        BufferedWriter bufWriter = null;
        FileWriter fileWriter = null; 
  
        try {
            File file = new File(filename);
            fileWriter = new FileWriter(filename, true);
            bufWriter = new BufferedWriter(fileWriter);
             
            if (file.length() > 0)
            bufWriter.newLine();
            
            bufWriter.write(newLigne);
            bufWriter.close();
            
        } catch (IOException e) {
            System.out.println(e.toString());
            
        } finally {
            try {
                bufWriter.close();
                fileWriter.close();
            } catch (IOException e) {
                System.out.println(e.toString());
            }
        }
    }