title: I/O Relative Paths
body: <p>I'm having a problem with relative paths in my program. The absolute path to the file which I want to use is:</p>
  
  <pre><code>C:\Users\User\Documents\Projects\Project1\src\files\test.txt
  </code></pre>
  
  <p>Now, I'm unsure of how to make this a relative path, I've tried:</p>
  
  <pre><code>.\files\test.txt
  </code></pre>
  
  <p>Which throws an error at me, I don't know how to make this go up a folder and read from the test.txt file.</p>