示例#1
0
 public static void Expand(string fromPath, string toPath, string fromDictionaryPath)
 {
     using (WordCompressor compressor = WordCompressor.OpenRead(fromDictionaryPath))
         using (BufferedReader reader = new BufferedReader(File.OpenRead(fromPath)))
             using (BufferedWriter writer = new BufferedWriter(File.Create(toPath)))
             {
                 compressor.Expand(reader, writer);
             }
 }