Esempio n. 1
0
        public static void saveEexNewFile(ScriptRoot root, String path)
        {
            EexBinaryWriter writer = new EexBinaryWriter(EexBinaryWriter.ENCODING_UTF8);

            root.saveNewWriter(writer);
            using (FileStream fs = new FileStream(path, FileMode.Create))
            {
                fs.Write(writer.getContent(), 0, writer.getIndex());
            }
        }
Esempio n. 2
0
        public static void saveEexFile(ScriptRoot root, String path, int group)
        {
            EexBinaryWriter writer = new EexBinaryWriter();

            root.saveWriter(writer, group);
            using (FileStream fs = new FileStream(path, FileMode.Create))
            {
                fs.Write(writer.getContent(), 0, writer.getIndex());
            }
        }