title: Access to the path 'C:\Users\username\Documents\test.txt' is denied
body: <p>I am working on a visual studio UWP project and I created a static class to create/open a file and write json data to the file.</p>
  
  <p>I am encountering the access denied error and I cannot figure out how to fix it.</p>
  
  <p>I am running Windows 10 Pro. Visual Studio 2015. .NETCore 5.2.2.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>using(StreamWriter sw = File.CreateText(@"C:\test.txt") )
  {
      using(JsonWriter writer = new JsonTextWriter(sw))
      {
          serializer.Serialize(writer, brand);
      }
  }
  </code></pre>
  
  <p>Things I've tried so far:  </p>
  
  <ul>
  <li>Running VS in Admin Mode.</li>
  <li>Running the app in debug or without debugging.</li>
  <li>Using different directories</li>
  <li>I tried creating the "test.txt" file with full read/write permission to everyone.</li>
  </ul>
  
  <p>Help is appreciated!<br>
  Zach</p>