title: Save modified WordprocessingDocument to new file
body: <p>I'm attempting to open a Word document, change some text and then save the changes to a new document. I can get the first bit done using the code below but I can't figure out how to save the changes to a NEW document (specifying the path and file name).</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Diagnostics;
  using DocumentFormat.OpenXml.Packaging;
  using System.IO;
  
  namespace WordTest
  {
  class Program
  {
      static void Main(string[] args)
      {
          string template = @"c:\data\hello.docx";
          string documentText;
  
          using (WordprocessingDocument wordDoc = WordprocessingDocument.Open(template, true))
          {
              using (StreamReader reader = new StreamReader(wordDoc.MainDocumentPart.GetStream()))
              {
                  documentText = reader.ReadToEnd();
              }
  
  
              documentText = documentText.Replace("##Name##", "Paul");
              documentText = documentText.Replace("##Make##", "Samsung");
  
              using (StreamWriter writer = new StreamWriter(wordDoc.MainDocumentPart.GetStream(FileMode.Create)))
              {
                  writer.Write(documentText);
              }
          }
        }
      }
  }
  </code></pre>
  
  <p>I'm a complete beginner at this, so forgive the basic question!</p>