title: Creating Directories On Local Folder
body: <p>I have a program that runs on a the ./Desktop/TestFolder0 in Ubuntu. </p>
  
  <p>When the program runs inside that TestFolder0 I want to create a folder named Outputs and inside that folder save a filed Output.txt. So it looks like:</p>
  
  <pre><code>./Desktop/TestFolder0/Outputs
  </code></pre>
  
  <p>I want to write my code in a way that if I move my program to TestFolderN the new folder and Output.txt will always be saved there.</p>
  
  <p>I was looking at <a href="https://stackoverflow.com/questions/7430248/how-can-i-create-new-folder-using-c-language">Creating a new directory in C</a> which taught me about <code>mkdir</code>. I still don't fully know how to use it, for example I need to give the new directory a path but I don't know how to point to where I am in the folder hierarchy. I also need to give <code>mkdir</code> rights that allow the folder to be opened etc.</p>
  
  <p>Please help</p>