public void SaveTo(Stream output) { var builder = new DawgBuilder(); var dawg = builder.Build(_wordBag); var encoder = new DawgEncoder(Dawg.FILEVERSION); encoder.Encode(output, dawg); }