title: How can I get the location of a user's Documents directory?
body: <p>I want to be able to write a string to a text file on any computer. For example</p>
  
  <pre><code>string line = "Sample text to write"
  File.WriteAllText(@"C:\Users\Rolex James\Documents\sample.txt" , line);
  </code></pre>
  
  <p>On another system this path would be different, is there a way of writing it such that you don't have to modify the path to suit each system you want to run it on?</p>