private boolean writeFile()

in tools/erlanalysis/src/main/java/org/apache/dubbo/erlang/analysis/generater/ErlProjectGenerater.java [201:217]


    private boolean writeFile(String filePath, String content) {
        FileWriter sourceFile = null;
        try {
            sourceFile = new FileWriter(filePath);
            sourceFile.write(content);
        } catch (IOException e) {
            e.printStackTrace();
            return false;
        } finally {
            try {
                sourceFile.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
        return true;
    }