public static String readLog(String name) {
                String tmpDir = System.getProperty("java.io.tmpdir") + File.separator + "DarkIRC";
                if (!(new File(tmpDir)).exists()) {
                        (new File(tmpDir)).mkdirs();
                }

                String text = "";
                try {
                        InputStream flux = new FileInputStream(tmpDir + File.separator + name);
                        InputStreamReader lecture = new InputStreamReader(flux);
                        BufferedReader buff = new BufferedReader(lecture);
                        String ligne;
                        while ((ligne = buff.readLine()) != null) {
                                text += ligne + "\n";
                        }
                        buff.close();
                } catch (Exception e) {
                        // System.out.println(e.toString());
                        return "";
                }
                return text;
        }