public static String addressFichier(String addresse, String str)
    {
        StringBuffer res = new StringBuffer();
        for (int i = 0; i < addresse.length() - str.length(); i++) {
            res.append(addresse.charAt(i));
        }
        return res.toString();
    }