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()); } }
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()); } }