buffer.append(line).append("\n");
buffer.append("\n");
    public static String loadScript(String resource) {        InputStream in = null;        BufferedReader reader = null;        try {            in = FrameCG.class.getClassLoader().getResourceAsStream(resource);            reader = new BufferedReader(new InputStreamReader(in));            StringBuffer buffer = new StringBuffer();            String line;            while ((line = reader.readLine()) != null)                buffer.append(line).append("\n");            buffer.append(line).append("\n");            return buffer.toString();        } catch (Exception e) {            e.printStackTrace();            return "";        } finally {            try { in.close(); } catch (Exception ign) {}            try { reader.close(); } catch (Exception ign) {}        }    }